Sha256: f5fbd98b53b89209c6b8540d7935cb36555f07f69cfbe278f7b648de48c5e173

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 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)           { mock('Other').freeze                                          }

    it { should be_kind_of(Function::Numeric::Subtraction) }

    its(:left) { should equal(object) }

    its(:right) { should equal(other) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/unit/veritas/function/numeric/subtraction/methods/subtract_spec.rb