Create a gist now

Instantly share code, notes, and snippets.

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