Sha256: 792b8046746ddf974f61b64d20bac281eb6af4520c31f9431196dc257d679dbf
Contents?: true
Size: 456 Bytes
Versions: 2
Compression:
Stored size: 456 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class UserTest < Test::Unit::TestCase fixtures :users, :groups, :user_groups def test_joinfix assert_equal "administrators", users(:bob).groups.first.name assert_equal 2, User.find_by_login("jane").groups.count assert_equal 3, UserGroup.find(user_groups(:jane_workers).id).user.id assert_equal users(:samantha), User.find_by_login("sam").groups.find_by_name("movers").users.first end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joinfix-0.1.0 | rails/test/unit/user_test.rb |
joinfix-0.1.1 | rails/test/unit/user_test.rb |