# in whatever test helper you use
class Test::Unit::TestCase
def defunkt
users(:defunkt)
end
def github
repositories(:github)
end
end
# in your tests
context "A user" do
test "belongs to a repository" do
assert_equal defunkt, github.user
end
end
Somethin’ like that.