Sha256: d41392e09f01e9cb3a91017920325f228f074dfaa936c66e2e554310bf868c3a

Contents?: true

Size: 564 Bytes

Versions: 10

Compression:

Stored size: 564 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

module VoteSmart
  describe State do
  
    describe "all" do
    
      def do_find
        State.all
      end
    
      it_should_find :count => 56, :first => {:name => "National", :id => "NA"},
                                   :last => {:name => "Louisiana", :id => "LA"}
    
    end
  
    describe "find_by_id" do
    
      def do_find
        State.find_by_id("GA")
      end
      
      it_should_find :item => {:name => "Georgia", :id => "GA", :largest_city => "Atlanta"}
    
    end
  
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
netroots-ruby-votesmart-0.2.0 spec/vote_smart/state_spec.rb
netroots-ruby-votesmart-0.2.1 spec/vote_smart/state_spec.rb
netroots-ruby-votesmart-0.2.2 spec/vote_smart/state_spec.rb
netroots-ruby-votesmart-0.2.3 spec/vote_smart/state_spec.rb
netroots-ruby-votesmart-0.2.4 spec/vote_smart/state_spec.rb
votesmart-0.4.0 spec/vote_smart/state_spec.rb
votesmart-0.3.3 spec/vote_smart/state_spec.rb
votesmart-0.3.2 spec/vote_smart/state_spec.rb
votesmart-0.3.1 spec/vote_smart/state_spec.rb
votesmart-0.3.0 spec/vote_smart/state_spec.rb