Commits

Kevin Berridge  committed 267f83a

testing remove doesn't fail if file isn't in prj file

  • Participants
  • Parent commits e4ccec1

Comments (0)

Files changed (2)

File prjsync/testA/myfile.csproj

-Some file
+Some file

File spec/prjfile_spec.rb

       val = doc.xpath( "//xmlns:Compile[@Include = \"#{testFile}\"]")
       val.length.should == 0
     end
+
+    it "doesn't fail if file isn't in prj file" do
+      testFile = 'Not\In\File.cs'
+      @prjFile.remove(testFile)
+
+      doc = Nokogiri::XML(@prjFile.text)
+      nodes = doc.xpath("//xmlns:Compile")
+      nodes.length.should == 4
+    end
   end
 end