Sha256: eed8f9850854fd0e98bc0a7db03fd0e0b5275a0b6ba2c88852f0d2c9efb9319d
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 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_kind_of(Function::Numeric::Modulo) } 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/modulo/methods/modulo_spec.rb |