Skip to content

@snuggs /voter_spec.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Acceptance Test
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.