Sha256: 9b73a929336fbf5d367868a87172514025c1a7b1ebf195051b333c191befca76

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

require_relative '../test-util'

describe 'Model::PioneInteger' do
  before do
    @one = PioneInteger.new(1)
    @two = PioneInteger.new(2)
  end

  it 'should get a ruby object that has same value' do
    @one.value.should == 1
  end

  it 'should equal' do
    @one.should == PioneInteger.new(1)
  end

  it 'should not equal' do
    @one.should.not == PioneInteger.new(2)
    @one.should.not == PioneFloat.new(1.0)
  end

  test_pione_method("integer")
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pione-0.2.2 test/model/spec_integer.rb
pione-0.2.1 test/model/spec_integer.rb
pione-0.2.0 test/model/spec_integer.rb