test/initialization_test.rb in surrounded-1.0.0 vs test/initialization_test.rb in surrounded-1.1.0
- old
+ new
@@ -26,10 +26,10 @@
it 'raises errors with missing keywords' do
err = assert_raises(ArgumentError){
KeywordContext.new(other_user: User.new('Amy'))
}
- assert_match(/missing keyword: user/, err.message)
+ assert_match(/missing keyword: :?user/, err.message)
end
end
class NonKeyworder
extend Surrounded::Context