test/context_access_test.rb in surrounded-0.7.0 vs test/context_access_test.rb in surrounded-0.7.1
- old
+ new
@@ -30,11 +30,11 @@
it 'excludes triggers when not allowed' do
refute context.triggers.include?(:if_ready)
end
it 'raises errors when trigger method not allowed' do
- error = assert_raises(Surrounded::Context::AccessError){
+ error = assert_raises(::Surrounded::Context::AccessError){
context.if_ready
}
- assert_match(/access to `if_ready' is not allowed/i, error.message)
+ assert_match(/access to FilteredContext#if_ready is not allowed/i, error.message)
end
end
\ No newline at end of file