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