summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/complex/positive_spec.rb
blob: 88898d31cf5d32246aff59d2ec9d21b23c0ca98e (plain)
1
2
3
4
5
6
7
8
9
10
11
describe "Complex#positive?" do
  it "is undefined" do
    c = Complex(1)

    c.methods.should_not include(:positive?)

    lambda {
      c.positive?
    }.should raise_error(NoMethodError)
  end
end