I has one-to many relationship, one group has many servers. To test this relation, i write this test, but it work only when I uncomented line. Why?
test 'Group can include server' do
group = groups(:default)
group.servers << servers(:default)
# Test work, when I uncomment this line:
# assert_instance_of Array, group.servers
group.save
assert_instance_of Server, group.servers.first
end