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:
parent
d339c78660
commit
626feeb30b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue