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

Version Path
wagons-0.2.2 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.2.1 test/dummy/vendor/wagons/superliner/test/models/person_test.rb
wagons-0.2.0 test/dummy/vendor/wagons/superliner/test/unit/person_test.rb
wagons-0.1.1 test/dummy/vendor/wagons/superliner/test/unit/person_test.rb
wagons-0.1.0 test/dummy/vendor/wagons/superliner/test/unit/person_test.rb
wagons-0.0.9 test/dummy/vendor/wagons/superliner/test/unit/person_test.rb
wagons-0.0.1 test/dummy/vendor/wagons/superliner/test/unit/person_test.rb