spec/lib/function_spec.rb in dydx-0.1.314 vs spec/lib/function_spec.rb in dydx-0.1.412
- old
+ new
@@ -1,18 +1,16 @@
require 'spec_helper'
-describe Dydx:Function do
- before(:each) do
- reset
- end
+describe Dydx::Function do
+ before { reset }
it 'ex1' do
expect(f(x, y)).to eq(f(x, y))
expect(f(x, y)).to eq($f)
expect(f(x, y).algebra).to be_nil
expect(f(x, y).vars).to eq([:x, :y])
- expect{f(x, y, z)}.to raise_error(ArgumentError)
- expect{f(x)}.to raise_error(ArgumentError)
+ expect { f(x, y, z) }.to raise_error(ArgumentError)
+ expect { f(x) }.to raise_error(ArgumentError)
end
it 'ex2' do
expect(f(x, y) <= x * y ).to eq(f(x, y))
expect(f(x, y)).to eq(f(x, y))