Permalink
Browse files

Merge pull request #123 from voxik/patch-1

respond_to? now doesn't return protected methods.
  • Loading branch information...
2 parents f77bf3e + cfa19e2 commit 9191bcd970e6ee36ac94c59b24e0bace69275348 @andi andi committed Mar 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/lib/simple_navigation/rails_controller_methods_spec.rb
View
2 spec/lib/simple_navigation/rails_controller_methods_spec.rb
@@ -53,7 +53,7 @@ def call_navigation(key1, key2=nil)
end
it 'should create an instance-method "sn_set_navigation" when being called' do
call_navigation(:key)
- @controller.respond_to?(:sn_set_navigation).should be_true
+ @controller.respond_to?(:sn_set_navigation, true).should be_true
end
it "the created method should not be public" do
call_navigation(:key)

0 comments on commit 9191bcd

Please sign in to comment.