Sha256: 3e38677adc01266a51a0ab9964a059325ba2bcaf1a9a41917d50d6a95afff483
Contents?: true
Size: 615 Bytes
Versions: 2
Compression:
Stored size: 615 Bytes
Contents
# encoding: utf-8 require 'spec_helper' [:subtract, :-].each do |method| describe Function::Numeric::Subtraction::Methods, "##{method}" do subject { object.send(method, other) } let(:described_class) { Class.new { include Function::Numeric::Subtraction::Methods } } let(:object) { described_class.new.freeze } let(:other) { double('Other').freeze } it { should be_instance_of(Function::Numeric::Subtraction) } its(:left) { should be(object) } its(:right) { should be(other) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/function/numeric/subtraction/methods/subtract_spec.rb |
axiom-0.1.1 | spec/unit/axiom/function/numeric/subtraction/methods/subtract_spec.rb |