1
0
Fork 0
mirror of https://github.com/ms-ati/docile synced 2023-03-27 23:21:52 -04:00

rbx error msg

This commit is contained in:
Alexey Vasiliev 2014-02-04 22:12:12 +02:00
parent d339c78660
commit 626feeb30b

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