Skip to content

Commit

Permalink
Remove eliminated methods from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Jun 10, 2011
1 parent 3b481d9 commit fd06df8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/pairtree/pairtree_obj_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
@target = File.join(@base_path, 'pairtree_root/ab/c1/23/de/f/abc123def/content.xml')
end

it "should open a file with #file" do
it "should open a file" do
File.should_receive(:open).with(@target,'r')
@obj.file('content.xml','r')
@obj.open('content.xml','r')
end

it "should call delete" do
Expand Down
1 change: 0 additions & 1 deletion spec/pairtree/pairtree_root_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

it "should be in the correct location" do
File.expand_path(@root.path).should == File.expand_path(@base_path)
File.expand_path(@root.pairtree_root.path).should == File.expand_path(File.join(@base_path, "pairtree_root"))
File.expand_path(@root.root).should == File.expand_path(File.join(@base_path, "pairtree_root"))
end

Expand Down

0 comments on commit fd06df8

Please sign in to comment.