Sha256: d751bbf14f3371911a9cc89490d2e1b1aa9d3b7373dfa80a1157b46f3a6d02d8
Contents?: true
Size: 1.19 KB
Versions: 10
Compression:
Stored size: 1.19 KB
Contents
require 'spec_helper' describe "Location" do describe "when initialized" do before(:each) do @location = Barometer::Location.new end it "responds to id" do @location.id.should be_nil end it "responds to name" do @location.name.should be_nil end it "responds to city" do @location.city.should be_nil end it "responds to state_name" do @location.state_name.should be_nil end it "responds to state_code" do @location.state_code.should be_nil end it "responds to country" do @location.country.should be_nil end it "responds to country_code" do @location.country_code.should be_nil end it "responds to zip_code" do @location.zip_code.should be_nil end it "responds to latitude" do @location.latitude.should be_nil end it "responds to longitude" do @location.longitude.should be_nil end it "responds to coordinates" do @location.longitude = "99.99" @location.latitude = "88.88" @location.coordinates.should == [@location.latitude, @location.longitude].join(',') end end end
Version data entries
10 entries across 10 versions & 2 rubygems