Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Acceptance Test

View voter_spec.rb
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.