diff options
Diffstat (limited to 'spec/rubyspec/core/complex/negative_spec.rb')
-rw-r--r-- | spec/rubyspec/core/complex/negative_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/rubyspec/core/complex/negative_spec.rb b/spec/rubyspec/core/complex/negative_spec.rb new file mode 100644 index 0000000000..2016968efd --- /dev/null +++ b/spec/rubyspec/core/complex/negative_spec.rb @@ -0,0 +1,11 @@ +describe "Complex#negative?" do + it "is undefined" do + c = Complex(1) + + c.methods.should_not include(:negative?) + + lambda { + c.negative? + }.should raise_error(NoMethodError) + end +end
\ No newline at end of file |