Sha256: 202d5f0e45301597732f57e194cf1488cca29b1192d44862c77ce023c23dc33d

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

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

    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/exponentiation/methods/exponent_spec.rb