Skip to content

Commit

Permalink
respond_to_missing behaves correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Aug 5, 2012
1 parent bfe6dc0 commit 561bfc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/lib/basic_decorator/decorator_spec.rb
Expand Up @@ -53,6 +53,9 @@ def additional_ingredients
it { should respond_to(:cost) } it { should respond_to(:cost) }
it { should respond_to(:origin) } it { should respond_to(:origin) }
it { should respond_to(:additional_ingredients) } it { should respond_to(:additional_ingredients) }
it { expect { subject.method(:cost) }.to_not raise_error(NameError) }
it { expect { subject.method(:origin) }.to_not raise_error(NameError) }
it { expect { subject.method(:additional_ingredients) }.to_not raise_error(NameError) }
end end
end end


Expand Down

0 comments on commit 561bfc5

Please sign in to comment.