Skip to content

Commit

Permalink
Merge pull request #123 from voxik/patch-1
Browse files Browse the repository at this point in the history
respond_to? now doesn't return protected methods.
  • Loading branch information
andi committed Mar 19, 2013
2 parents f77bf3e + cfa19e2 commit 9191bcd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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)
Expand Down

0 comments on commit 9191bcd

Please sign in to comment.