Skip to content

Commit

Permalink
Test for Strategies::FiguresConverter::Options::Proxy added
Browse files Browse the repository at this point in the history
  • Loading branch information
miks committed Nov 19, 2013
1 parent a9b7186 commit 77e32cd
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require 'spec_helper'

describe NumbersAndWords::Strategies::FiguresConverter::Options::Proxy do
describe '#method_missing' do
context 'when unexisting method called' do
it 'rescues from NameError and returns nil' do
proxy = NumbersAndWords::Strategies::FiguresConverter::Options::Proxy.new(double(), {})
expect(proxy.existing_method).to be_nil
end
end
end
end

0 comments on commit 77e32cd

Please sign in to comment.