summaryrefslogtreecommitdiff
path: root/spec/ruby/library/openstruct/method_missing_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/openstruct/method_missing_spec.rb')
-rw-r--r--spec/ruby/library/openstruct/method_missing_spec.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/ruby/library/openstruct/method_missing_spec.rb b/spec/ruby/library/openstruct/method_missing_spec.rb
index 212db015a9..89f83d07b3 100644
--- a/spec/ruby/library/openstruct/method_missing_spec.rb
+++ b/spec/ruby/library/openstruct/method_missing_spec.rb
@@ -17,10 +17,8 @@ describe "OpenStruct#method_missing when passed additional arguments" do
-> { os.test(1, 2, 3) }.should raise_error(NoMethodError)
end
- ruby_version_is "2.7" do
- it "raises an ArgumentError when the key exists" do
- os = OpenStruct.new(test: 20)
- -> { os.test(1, 2, 3) }.should raise_error(ArgumentError)
- end
+ it "raises an ArgumentError when the key exists" do
+ os = OpenStruct.new(test: 20)
+ -> { os.test(1, 2, 3) }.should raise_error(ArgumentError)
end
end