From 388b10a7e56eb1f90ae305d22e4112080af264bc Mon Sep 17 00:00:00 2001 From: nathanvda Date: Sat, 18 Jun 2011 01:40:35 +0200 Subject: [PATCH] Fixed the tests. --- spec/cocoon_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/cocoon_spec.rb b/spec/cocoon_spec.rb index b52ea8f..71b10d0 100644 --- a/spec/cocoon_spec.rb +++ b/spec/cocoon_spec.rb @@ -21,12 +21,12 @@ describe Cocoon do context "without a block" do it "should accept a name" do result = @tester.link_to_add_association('add something', @form_obj, :comments) - result.to_s.should == 'add something' + result.to_s.should == 'add something' end it "should accept html options and pass them to link_to" do result = @tester.link_to_add_association('add something', @form_obj, :comments, {:class => 'something silly'}) - result.to_s.should == 'add something' + result.to_s.should == 'add something' end end @@ -35,14 +35,14 @@ describe Cocoon do result = @tester.link_to_add_association(@form_obj, :comments) do "some long name" end - result.to_s.should == 'some long name' + result.to_s.should == 'some long name' end it "should accept html options and pass them to link_to" do result = @tester.link_to_add_association(@form_obj, :comments, {:class => 'floppy disk'}) do "some long name" end - result.to_s.should == 'some long name' + result.to_s.should == 'some long name' end end @@ -50,7 +50,7 @@ describe Cocoon do context "with an irregular plural" do it "should use the correct plural" do result = @tester.link_to_add_association('add something', @form_obj, :people) - result.to_s.should == 'add something' + result.to_s.should == 'add something' end end