Sha256: 18fe8bbf823ca0f0c8164c5d5cddc3c390bd1f45f856f6a774a38f7724f97a6e
Contents?: true
Size: 915 Bytes
Versions: 1
Compression:
Stored size: 915 Bytes
Contents
require 'spec_helper' module VoteSmart describe District do describe "find_all_by_office_and_state" do def do_find District.find_all_by_office_id_and_state_id("9", "GA") end it_should_find :count => 56, :first => {:name => "District 1", :id => "21945"}, :last => {:name => "District 56", :id => "22000"} end describe "number" do it "should parse out the number" do @district = District.new "name" => "District 64" @district.number.should == 64 end it "should be nil if it cannot parse out the number" do @district = District.new "name" => "District hah" @district.number.should == nil end it "should be nil if there is no name" do @district = District.new @district.number.should == nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
votesmart-0.4.1 | spec/vote_smart/district_spec.rb |