spec/lib/danica/division_spec.rb in danica-2.0.1 vs spec/lib/danica/division_spec.rb in danica-2.0.2
- old
+ new
@@ -1,10 +1,11 @@
require 'spec_helper'
describe Danica::Division do
- let(:subject) do
- described_class.new(*variables)
- end
+ let(:variables) { [2, 4] }
+ subject { described_class.new(*variables) }
+
+ it_behaves_like 'an object with + operation'
it_behaves_like 'a operator that has two terms', :division, {
values: [ 2, 4 ],
calculated: 1.0 / 2.0,
to_tex: {