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

Version Path
wagons-0.8.0 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.7.0 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.6.1 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.6.0 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.5.0 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.4.8 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.4.7 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.4.6 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.4.5 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.4.4 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.4.3 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.4.2 test/dummy/vendor/wagons/superliner/test/models/person_test.rb