Sha256: ec280aa1471b9e4693715e7e75096d272e4644e9ab1996913772cf8bafcbffe0

Contents?: true

Size: 526 Bytes

Versions: 5

Compression:

Stored size: 526 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
      expect(object.to_s).to eq('Chef in abc-inc')
    end
  end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pupa-0.2.4 spec/models/post_spec.rb
pupa-0.2.3 spec/models/post_spec.rb
pupa-0.2.2 spec/models/post_spec.rb
pupa-0.2.1 spec/models/post_spec.rb
pupa-0.2.0 spec/models/post_spec.rb