Created
April 23, 2010 07:00
-
-
Save alexrothenberg/376289 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test/unit/team_test.rb | |
require File.join(File.expand_path(File.dirname(__FILE__)), '..', 'test_helper') | |
class TeamTest < ActiveSupport::TestCase | |
test 'can save a team in the database' do | |
team = Team.new(:name => 'Liverpool') | |
team.save! | |
team_from_database = Team.find(team.id) | |
assert_equal team, team_from_database | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment