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.1.11 spec/models/post_spec.rb
pupa-0.1.10 spec/models/post_spec.rb
pupa-0.1.9 spec/models/post_spec.rb
pupa-0.1.8 spec/models/post_spec.rb
pupa-0.1.7 spec/models/post_spec.rb
pupa-0.1.6 spec/models/post_spec.rb
pupa-0.1.5 spec/models/post_spec.rb
pupa-0.1.4 spec/models/post_spec.rb
pupa-0.1.3 spec/models/post_spec.rb
pupa-0.1.2 spec/models/post_spec.rb
pupa-0.1.1 spec/models/post_spec.rb
pupa-0.1.0 spec/models/post_spec.rb
pupa-0.0.13 spec/models/post_spec.rb
pupa-0.0.12 spec/models/post_spec.rb
pupa-0.0.11 spec/models/post_spec.rb
pupa-0.0.10 spec/models/post_spec.rb
pupa-0.0.9 spec/models/post_spec.rb
pupa-0.0.8 spec/models/post_spec.rb
pupa-0.0.7 spec/models/post_spec.rb
pupa-0.0.6 spec/models/post_spec.rb