Sha256: f13050b666549fc3cd0312e5dbb91641e8156f8750ff89a751ba0c8b32b5177b
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
# encoding: utf-8 require 'spec_helper' [ :add, :+ ].each do |method| describe Function::Numeric::Addition::Methods, "##{method}" do subject { object.send(method, other) } let(:described_class) { Class.new { include Function::Numeric::Addition::Methods } } let(:object) { described_class.new.freeze } let(:other) { mock('Other').freeze } it { should be_kind_of(Function::Numeric::Addition) } 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/addition/methods/add_spec.rb |