Sha256: 85fb51d5bbf77a7ec982a272044bf73bee70479134fc9c00fd0704b5267d7623
Contents?: true
Size: 568 Bytes
Versions: 6
Compression:
Stored size: 568 Bytes
Contents
require 'helper' class TestLocation < Test::Unit::TestCase context "Given Locations from fixture" do setup do @locations = Songkickr::LocationResult.new(fixture_hash('locations_bar.json')) end should "properly load data from JSON" do assert_equal 8, @locations.results.size assert_equal 8, @locations.total_entries potters_bar = @locations.results.first assert_equal "Potters Bar", potters_bar.city assert_equal 51.6833, potters_bar.lat assert_equal -0.166667, potters_bar.lng end end end
Version data entries
6 entries across 6 versions & 1 rubygems