Sha256: 6067d5ecbdf7fe7832803f957fc7e15a33442bb6040d2b6a3b4a6fc2ee730f32

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[ :unary_plus, :+@ ].each do |method|
  describe Function::Numeric::UnaryPlus::Methods, "##{method}" do
    subject { object.send(method) }

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

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

    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/unary_plus/methods/unary_plus_spec.rb
veritas-0.0.7 spec/unit/veritas/function/numeric/unary_plus/methods/unary_plus_spec.rb
veritas-0.0.6 spec/unit/veritas/function/numeric/unary_plus/methods/unary_plus_spec.rb
veritas-0.0.5 spec/unit/veritas/function/numeric/unary_plus/methods/unary_plus_spec.rb