summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/Complex_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/Complex_spec.rb')
-rw-r--r--spec/ruby/core/kernel/Complex_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/kernel/Complex_spec.rb b/spec/ruby/core/kernel/Complex_spec.rb
index f738f43a10..44e4f44ada 100644
--- a/spec/ruby/core/kernel/Complex_spec.rb
+++ b/spec/ruby/core/kernel/Complex_spec.rb
@@ -126,8 +126,8 @@ describe "Kernel.Complex()" do
describe "when passed a non-Numeric second argument" do
it "raises TypeError" do
- lambda { Complex.send(@method, :sym, :sym) }.should raise_error(TypeError)
- lambda { Complex.send(@method, 0, :sym) }.should raise_error(TypeError)
+ lambda { Complex(:sym, :sym) }.should raise_error(TypeError)
+ lambda { Complex(0, :sym) }.should raise_error(TypeError)
end
end