Sha256: 154711f4cabae0222b5d64a5901d457ffec792815f241a3bd4d714706aacb6e6
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 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 be(object) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/function/numeric/unary_plus/methods/unary_plus_spec.rb |
axiom-0.1.1 | spec/unit/axiom/function/numeric/unary_plus/methods/unary_plus_spec.rb |