Sha256: ceb69cf1d717ea4b5625976806a4d05e3ad20c334fd73adfe4c4c352333e520d

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 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

4 entries across 4 versions & 1 rubygems

Version Path
wagons-0.4.1 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.4.0 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.3.1 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.3.0 test/dummy/vendor/wagons/superliner/test/models/person_test.rb