summaryrefslogtreecommitdiff
path: root/spec/ruby/core/numeric/shared/imag.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/numeric/shared/imag.rb')
-rw-r--r--spec/ruby/core/numeric/shared/imag.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/numeric/shared/imag.rb b/spec/ruby/core/numeric/shared/imag.rb
index 0b46b0020b..605a23d8c6 100644
--- a/spec/ruby/core/numeric/shared/imag.rb
+++ b/spec/ruby/core/numeric/shared/imag.rb
@@ -6,7 +6,7 @@ describe :numeric_imag, shared: true do
20, # Integer
398.72, # Float
Rational(3, 4), # Rational
- bignum_value, # Integer
+ bignum_value, # Bignum
infinity_value,
nan_value
].map{|n| [n,-n]}.flatten
@@ -19,8 +19,8 @@ describe :numeric_imag, shared: true do
end
it "raises an ArgumentError if given any arguments" do
- @numbers.each do |number|
- -> { number.send(@method, number) }.should raise_error(ArgumentError)
- end
+ @numbers.each do |number|
+ -> { number.send(@method, number) }.should.raise(ArgumentError)
+ end
end
end