Sha256: 688773cfa2321859bccdc3c0600b5b0706eab179e63bb86820f8bc03c1646c28

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

require 'sunlight/congress'

class TestIntegrationCongress < MiniTest::Unit::TestCase
  ['first_name', 'last_name', 'website'].each do |attr|
    define_method "test_#{attr}" do
      l = Sunlight::Congress::Legislator.new(attr => "foo")
      assert_equal "foo", l.send(attr)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunlight-congress-1.1.0 test/legislators_test.rb