Some test improvements
This commit is contained in:
parent
d5d4adb2f9
commit
f183bd8ec8
3 changed files with 20 additions and 18 deletions
22
test/fixtures/countries.yml
vendored
22
test/fixtures/countries.yml
vendored
|
@ -1,13 +1,15 @@
|
||||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||||
|
|
||||||
one:
|
gb:
|
||||||
min_lat:
|
code: gb
|
||||||
max_lat:
|
min_lat: 49.9061889648438
|
||||||
min_lon:
|
max_lat: 60.8458099365234
|
||||||
max_lon:
|
min_lon: -8.62355613708496
|
||||||
|
max_lon: 1.75900018215179
|
||||||
|
|
||||||
two:
|
de:
|
||||||
min_lat:
|
code: de
|
||||||
max_lat:
|
min_lat: 47.2757720947266
|
||||||
min_lon:
|
max_lat: 55.0556411743164
|
||||||
max_lon:
|
min_lon: 5.865638256073
|
||||||
|
max_lon: 15.0398902893066
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
require 'test_helper'
|
require File.dirname(__FILE__) + '/../test_helper'
|
||||||
|
|
||||||
class CountryTest < ActiveSupport::TestCase
|
class CountryTest < ActiveSupport::TestCase
|
||||||
# Replace this with your real tests.
|
fixtures :countries
|
||||||
test "the truth" do
|
|
||||||
assert true
|
test "country count" do
|
||||||
|
assert_equal 2, Country.count
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
require 'test_helper'
|
require File.dirname(__FILE__) + '/../test_helper'
|
||||||
|
|
||||||
class LanguageTest < ActiveSupport::TestCase
|
class LanguageTest < ActiveSupport::TestCase
|
||||||
# Replace this with your real tests.
|
test "language count" do
|
||||||
test "the truth" do
|
assert_equal 2, Language.count
|
||||||
assert true
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue