Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #124 from voxik/patch-2

Fix compatibity with RSpec 2.12
  • Loading branch information...
commit f77bf3ef8e1026110536378a47306a0ad049635e 2 parents 097c644 + e9d4e4d
Andi Schacke andi authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/lib/simple_navigation/rendering/helpers_spec.rb
10 spec/lib/simple_navigation/rendering/helpers_spec.rb
View
@@ -89,10 +89,10 @@ 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
@@ -100,7 +100,7 @@ def whitebox_setup
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
Please sign in to comment.
Something went wrong with that request. Please try again.