Sha256: 900a7020d3fc75684b691c28445c0af4044b9cd44f48b71734ed852d296ddcf2
Contents?: true
Size: 645 Bytes
Versions: 4
Compression:
Stored size: 645 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_instance_of(Function::Numeric::Exponentiation) } its(:left) { should equal(object) } its(:right) { should equal(other) } end end
Version data entries
4 entries across 4 versions & 2 rubygems