Sha256: d6eaa679b1674d1fcb411e61246123a747e20318fc9c2d1e370951231283c5c6
Contents?: true
Size: 704 Bytes
Versions: 6
Compression:
Stored size: 704 Bytes
Contents
module GeonamesRails module Writers class DryRun def write_country(country_mapping) raise "must have a of country mapping" unless country_mapping "Dry run of country #{country_mapping[:name]} should have been OK" end def write_cities(country_code, city_mappings) raise "can't create cities without a country" unless country_code raise "must have a set of city mappings" unless city_mappings raise "i'm sure there should be at least 1 city in this country" if city_mappings.empty? "Dry run of country #{country_code} would have written out #{city_mappings.length} cities" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems