Permalink
Browse files

Merge pull request #124 from voxik/patch-2

Fix compatibity with RSpec 2.12
  • Loading branch information...
andi committed Mar 19, 2013
2 parents 097c644 + e9d4e4d commit f77bf3ef8e1026110536378a47306a0ad049635e
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/lib/simple_navigation/rendering/helpers_spec.rb
@@ -89,18 +89,18 @@ def whitebox_setup
before(:each) do
select_item(:subnav1)
end
- it {@controller.active_navigation_item(:level => 2).should == @subnav1_item}
- it {@controller.active_navigation_item.should == @subnav1_item}
- it {@controller.active_navigation_item(:level => 1).should == @invoices_item}
- it {@controller.active_navigation_item(:level => :all).should == @subnav1_item}
+ it {@controller.active_navigation_item(:level => 2).should eq(@subnav1_item)}
+ it {@controller.active_navigation_item.should eq(@subnav1_item)}
+ it {@controller.active_navigation_item(:level => 1).should eq(@invoices_item)}
+ it {@controller.active_navigation_item(:level => :all).should eq(@subnav1_item)}
end
context 'container does not have selected item' do
context 'return value defaults to nil' do
it {@controller.active_navigation_item.should == nil}
end
context 'return value reflects passed in value' do
it {@controller.active_navigation_item({},'none').should == 'none'}
- it {@controller.active_navigation_item({},@invoices_item).should == @invoices_item}
+ it {@controller.active_navigation_item({},@invoices_item).should eq(@invoices_item)}
end
end
end

0 comments on commit f77bf3e

Please sign in to comment.