spec/lib/integrand_spec.rb in dydx-0.1.1 vs spec/lib/integrand_spec.rb in dydx-0.1.2
- old
+ new
@@ -1,8 +1,9 @@
require 'spec_helper'
describe Dydx:Integrand do
it 'ex1' do
+ $f = nil
f(x, y) <= x * y
integrand = S(f(x, y), dx)
expect(integrand.function).to eq(f(x, y))
expect(integrand.var).to eq(:x)
expect{integrand[4, 3]}.to raise_error(ArgumentError)