vote_spec.rb 435 Bytes
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Vote do
  before(:each) do
    @valid_attributes = {
      :tracking => "value for tracking",
      :site_id => 1,
      :voter_id => 1,
      :question_id => 1,
      :prompt_id => 1,
      :choice_id=> 1,
      :loser_choice_id=> 1,
    }
  end

  it "should create a new instance given valid attributes" do
    Vote.create!(@valid_attributes)
  end
end