blob: f1bad8608ca14c7cf9954f4940980ea98fa4f023 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require_relative '../../spec_helper'
describe "Complex#positive?" do
it "is undefined" do
c = Complex(1)
c.methods.should_not include(:positive?)
-> {
c.positive?
}.should raise_error(NoMethodError)
end
end
|