Sha256: 599adc952d76462ea1914bcdc59622083197eebc6e306dce7a8592a1a5a19177

Contents?: true

Size: 516 Bytes

Versions: 25

Compression:

Stored size: 516 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Pupa::Post do
  let :object do
    Pupa::Post.new(label: 'Chef', organization_id: 'abc-inc', end_date: '2010')
  end

  describe '#to_s' do
    it 'should return a human-readable string' do
      object.to_s.should == 'Chef in abc-inc'
    end
  end

  describe '#fingerprint' do
    it 'should return the fingerprint' do
      object.fingerprint.should == {label: 'Chef', organization_id: 'abc-inc', end_date: '2010'}
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
pupa-0.0.5 spec/models/post_spec.rb
pupa-0.0.4 spec/models/post_spec.rb
pupa-0.0.3 spec/models/post_spec.rb
pupa-0.0.2 spec/models/post_spec.rb
pupa-0.0.1 spec/models/post_spec.rb