Sha256: d467456f615e339ca045a00ec5ba6c714806e46acd682135501735b9e1dfdaa0

Contents?: true

Size: 245 Bytes

Versions: 5

Compression:

Stored size: 245 Bytes

Contents

require 'spec_helper'
module Domain
  describe Scalar, "to_hash" do

    let(:point){ Point.new(1, 2) }

    subject{ point.to_hash }

    it 'returns a hash with component values' do
      subject.should eq(:x => 1, :y => 2)
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
domain-1.0.0 spec/factory/scalar_domain/test_to_hash.rb
domain-1.0.0.rc4 spec/factory/scalar_domain/test_to_hash.rb
domain-1.0.0.rc3 spec/factory/scalar_domain/test_to_hash.rb
domain-1.0.0.rc2 spec/factory/scalar_domain/test_to_hash.rb
domain-1.0.0.rc1 spec/factory/scalar_domain/test_to_hash.rb