blob: 1ea5392f392c48e2b10957133e9d911217bc8a22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require_relative '../../spec_helper'
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
|