forked from thecristen/phone-your-rep-api
/
factories.rb
34 lines (29 loc) · 844 Bytes
/
factories.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# frozen_string_literal: true
require_relative 'geom_spec_helper'
FactoryGirl.define do
factory :state_district_geom { full_code 'MyString' }
factory :state_district do
state_code 'MyString'
code 'MyString'
full_code 'MyString'
name 'MyString'
chamber 'MyString'
requests 0
end
factory :rep do
bioguide_id 'bioguide_id'
state
end
factory :office_location { office_id 'office_id' }
factory :v_card
factory :state { state_code 'state_code' }
factory :congressional_district
factory :district
factory :avatar
factory :impression
factory :zcta
factory :zcta_district
factory :state_geom { geom GeomSpecHelper.nebraska_geometry }
factory :district_geom { geom GeomSpecHelper.nebraska_geometry }
factory :congressional_district_geom { geom GeomSpecHelper.nebraska_geometry }
end