spec/lib/danica/power_spec.rb in danica-2.0.1 vs spec/lib/danica/power_spec.rb in danica-2.0.2
- old
+ new
@@ -1,10 +1,11 @@
require 'spec_helper'
describe Danica::Power 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', :power, {
values: [ 3, 2 ],
calculated: 9.0,
to_tex: {