Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 285b819611
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (17 sloc) 0.435 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
require 'helper'

context "User" do
  fixtures do
    @user = Play::User.create(:email => "holman@example.com")
  end

  test "vote for" do
    @user.vote_for(Play::Song.create)
    assert_equal 1, @user.votes.count
  end

  test "gravatar_id" do
    assert_equal "54e4ab9ced3fd1f3f5b20ab2f8201b73", @user.gravatar_id
  end

  test "votes count" do
    @user.vote_for(Play::Song.create)
    assert_equal 1, @user.votes_count
  end
end
Something went wrong with that request. Please try again.