Sha256: 5f316fc4fae9cf27e0455fb8c6ada4309b2740dea530022bb4d0e969df44e017

Contents?: true

Size: 602 Bytes

Versions: 4

Compression:

Stored size: 602 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[ :modulo, :mod, :% ].each do |method|
  describe Function::Numeric::Modulo::Methods, "##{method}" do
    subject { object.send(method, other) }

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

    it { should be_instance_of(Function::Numeric::Modulo) }

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

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/function/numeric/modulo/methods/modulo_spec.rb
veritas-0.0.7 spec/unit/veritas/function/numeric/modulo/methods/modulo_spec.rb
veritas-0.0.6 spec/unit/veritas/function/numeric/modulo/methods/modulo_spec.rb
veritas-0.0.5 spec/unit/veritas/function/numeric/modulo/methods/modulo_spec.rb