public
Created

Acceptance Test

  • Download Gist
voter_spec.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
require 'spec_helper'
 
describe 'Voting' do
let(:person) { Factory.attributes_for :person }
 
before do
visit '/addperson'
register person
submit_vote_for person
end
 
it 'increases vote count by one' do
find('#vote_count').
text.should eq '1'
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.