Permalink
Browse files

respond_to_missing behaves correctly

  • Loading branch information...
1 parent bfe6dc0 commit 561bfc5235979c23771f35622dc60e5fb2d77443 @joshuaclayton committed Aug 5, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 spec/lib/basic_decorator/decorator_spec.rb
@@ -53,6 +53,9 @@ def additional_ingredients
it { should respond_to(:cost) }
it { should respond_to(:origin) }
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

0 comments on commit 561bfc5

Please sign in to comment.