summaryrefslogtreecommitdiff
path: root/spec/ruby/core/module/attr_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/module/attr_spec.rb')
-rw-r--r--spec/ruby/core/module/attr_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/ruby/core/module/attr_spec.rb b/spec/ruby/core/module/attr_spec.rb
index 87bf8ea57f..b114b06b6e 100644
--- a/spec/ruby/core/module/attr_spec.rb
+++ b/spec/ruby/core/module/attr_spec.rb
@@ -138,9 +138,8 @@ describe "Module#attr" do
it "with a boolean argument emits a warning when $VERBOSE is true" do
lambda {
- $VERBOSE = true
Class.new { attr :foo, true }
- }.should complain(/boolean argument is obsoleted/)
+ }.should complain(/boolean argument is obsoleted/, verbose: true)
end
ruby_version_is ''...'2.5' do