aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/complex/negative_spec.rb
blob: 5b51933106ad41623cd2fd3acccd7e000fcd5791 (plain)
1
2
3
4
5
6
7
8
9
10
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