Sha256: d224bb4fad865817d6ae90053984f3dad0bc4369cd2f78ca86a8c18e913672a0

Contents?: true

Size: 476 Bytes

Versions: 4

Compression:

Stored size: 476 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[ :absolute, :abs ].each do |method|
  describe Function::Numeric::Absolute::Methods, "##{method}" do
    subject { object.send(method) }

    let(:described_class) { Class.new { include Function::Numeric::Absolute::Methods } }
    let(:object)          { described_class.new.freeze                                 }

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

    its(:operand) { should equal(object) }
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

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