Sha256: 88684e38df8b112df65ab4c32744b51c2878ad7171c2f0dfc755f17d0c33577c

Contents?: true

Size: 634 Bytes

Versions: 1

Compression:

Stored size: 634 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[ :multiply, :* ].each do |method|
  describe Function::Numeric::Multiplication::Methods, "##{method}" do
    subject { object.send(method, other) }

    let(:described_class) { Class.new { include Function::Numeric::Multiplication::Methods } }
    let(:object)          { described_class.new.freeze                                       }
    let(:other)           { mock('Other').freeze                                             }

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

    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/multiplication/methods/multiply_spec.rb