rbx error msg

This commit is contained in:
Alexey Vasiliev 2014-02-04 22:12:12 +02:00
parent d339c78660
commit 626feeb30b
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ describe Docile do
context 'when DSL have NoMethod error inside' do
it 'raise error from nil' do
Docile.dsl_eval(DSLWithNoMethod.new(nil)) do
expect { push_element }.to raise_error(NoMethodError, "undefined method `push' for nil:NilClass")
expect { push_element }.to raise_error(NoMethodError, /undefined method `push' (for|on) nil:NilClass/)
end
end
end