Sha256: 9a7a5a16da9e9bd3ad85962fa43d27988fb85cf6b811b6b7ee4da697c80db47d
Contents?: true
Size: 372 Bytes
Versions: 12
Compression:
Stored size: 372 Bytes
Contents
require 'test_helper' class PersonTest < ActiveSupport::TestCase test 'test seeds from application are loaded' do assert Person.where(:name => 'Pascal').exists? end test 'person can live in a city' do person = Person.new(:name => 'Fred') person.city = cities(:london) assert person.save assert cities(:london).people.include?(person) end end
Version data entries
12 entries across 12 versions & 1 rubygems