Sha256: 6e84066be5afd9cbdb43df9c5a031712de46060e77fa3e27d960ce8b6eaaf5d7
Contents?: true
Size: 380 Bytes
Versions: 7
Compression:
Stored size: 380 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
7 entries across 7 versions & 1 rubygems