Sha256: 4f444a1bd5545eb908c29a7a9fb89cf69909705ec90f88180f3967825d8da770

Contents?: true

Size: 356 Bytes

Versions: 4

Compression:

Stored size: 356 Bytes

Contents

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

describe Pupa::Vote do
  let :object do
    Pupa::Vote.new(option: 'yes', voter_id: 'john-q-public', vote_event_id: 'vote-42')
  end

  describe '#to_s' do
    it 'should return a human-readable string' do
      object.to_s.should == 'yes by john-q-public in vote-42'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pupa-0.1.11 spec/models/vote_spec.rb
pupa-0.1.10 spec/models/vote_spec.rb
pupa-0.1.9 spec/models/vote_spec.rb
pupa-0.1.8 spec/models/vote_spec.rb