Sha256: 8115c7a44e497181983debd8e8a0bda8d24bcc7d0aebfee582ac6e213ae52549

Contents?: true

Size: 258 Bytes

Versions: 6

Compression:

Stored size: 258 Bytes

Contents

require 'test_helper'

class CityTest < ActiveSupport::TestCase
  test "city without name is invalid" do
    city = City.new
    assert !city.valid?
  end
 
  test "fixtures from wagon are loaded" do
    assert_equal 'London', cities(:london).name
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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