Sha256: 80ce4e07c51704b8b303f9901312f0dac50fce6d49c6d9e2fa9102230560b864
Contents?: true
Size: 809 Bytes
Versions: 8
Compression:
Stored size: 809 Bytes
Contents
# -*- encoding: utf-8 -*- require 'helper' init_database require 'earth' # use earth, which has a plethora of real-world data_miner blocks Earth.init :locality, :pet, :load_data_miner => true, :apply_schemas => true describe DataMiner do describe "being used by the Earth library's import steps" do describe "for pets" do it "can pull breed and species" do Breed.run_data_miner! Breed.find('Golden Retriever').species.must_equal Species.find('dog') end end describe "for localities" do it "can handle non-latin characters" do Country.run_data_miner! Country.find('DE').name.must_equal 'Germany' Country.find('AX').name.must_equal 'Åland Islands' Country.find('CI').name.must_equal "Côte d'Ivoire" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems