summaryrefslogtreecommitdiff
path: root/test/ruby/test_assignment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_assignment.rb')
-rw-r--r--test/ruby/test_assignment.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/ruby/test_assignment.rb b/test/ruby/test_assignment.rb
index 164d1cc1b5..bf6602ab13 100644
--- a/test/ruby/test_assignment.rb
+++ b/test/ruby/test_assignment.rb
@@ -119,31 +119,31 @@ class TestAssignment < Test::Unit::TestCase
def []=(i, a); 42; end
end
- assert_raise(NoMethodError) {
+ assert_raise(NoMethodError, bug11096) {
o.instance_eval {o.foo = 1}
}
- assert_nothing_raised(NoMethodError) {
+ assert_nothing_raised(NoMethodError, bug11096) {
assert_equal(1, o.instance_eval {self.foo = 1})
}
- assert_raise(NoMethodError) {
+ assert_raise(NoMethodError, bug11096) {
o.instance_eval {o[0] = 1}
}
- assert_nothing_raised(NoMethodError) {
+ assert_nothing_raised(NoMethodError, bug11096) {
assert_equal(1, o.instance_eval {self[0] = 1})
}
- assert_nothing_raised(NoMethodError) {
+ assert_nothing_raised(NoMethodError, bug11096) {
o.instance_eval {self.foo += 1}
}
- assert_nothing_raised(NoMethodError) {
+ assert_nothing_raised(NoMethodError, bug11096) {
o.instance_eval {self.foo &&= 1}
}
- assert_nothing_raised(NoMethodError) {
+ assert_nothing_raised(NoMethodError, bug11096) {
o.instance_eval {self[0] += 1}
}
- assert_nothing_raised(NoMethodError) {
+ assert_nothing_raised(NoMethodError, bug11096) {
o.instance_eval {self[0] &&= 1}
}
end