spec/overapp_spec.rb in overapp-0.5.0 vs spec/overapp_spec.rb in overapp-0.5.1

- old
+ new

@@ -33,11 +33,11 @@ it 'combined size' do combined.size.should == 2 end it 'combined file should overwrite' do - f = combined.files.find { |x| x.path == "b.txt" } + f = combined.find { |x| x.path == "b.txt" } f.body.should == 'other' end end describe "dotfile" do @@ -50,11 +50,11 @@ it 'combined size' do combined.size.should == 3 end it 'dotfile there' do - f = combined.files.find { |x| x.path == ".abc" } + f = combined.find { |x| x.path == ".abc" } f.body.should == 'stuff' end end @@ -69,11 +69,11 @@ it 'combined size' do combined.size.should == 2 end it 'combined file should overwrite' do - f = combined.files.find { |x| x.path == "b.txt" } + f = combined.find { |x| x.path == "b.txt" } f.body.should == "here\nother" end end describe "combine - insert after" do @@ -86,11 +86,11 @@ it 'combined size' do combined.size.should == 2 end it 'combined file should overwrite' do - f = combined.files.find { |x| x.path == "b.txt" } + f = combined.find { |x| x.path == "b.txt" } f.body.should == "123\n456\nabc\n789" end end describe "combine - insert after with colon" do @@ -103,11 +103,11 @@ it 'combined size' do combined.size.should == 2 end it 'combined file should overwrite' do - f = combined.files.find { |x| x.path == "b.txt" } + f = combined.find { |x| x.path == "b.txt" } f.body.should == "123\n45: 6\nabc\n789" end end describe "combine - insert before" do @@ -120,11 +120,11 @@ it 'combined size' do combined.size.should == 2 end it 'combined file should overwrite' do - f = combined.files.find { |x| x.path == "b.txt" } + f = combined.find { |x| x.path == "b.txt" } f.body.should == "123\nabc\n456\n789" end end describe "combine - delete" do @@ -149,11 +149,11 @@ it 'combined size' do combined.size.should == 2 end it 'combined file should overwrite' do - f = combined.files.find { |x| x.path == "b.txt" } + f = combined.find { |x| x.path == "b.txt" } f.body.should == "abc\ndef\n789" end end describe "combine - replace" do @@ -166,10 +166,10 @@ it 'combined size' do combined.size.should == 2 end it 'combined file should overwrite' do - f = combined.files.find { |x| x.path == "b.txt" } + f = combined.find { |x| x.path == "b.txt" } f.body.should == "123\nabc\n789" end end