Skip to content

Commit

Permalink
updates specs based on requirements changes from erik
Browse files Browse the repository at this point in the history
party is now findable by actual id rather than by name
  • Loading branch information
mkorcy committed May 4, 2015
1 parent f798681 commit 42e0b03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/models/election_record_datastream_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
@county_solr["state_name_sim"].should == ["Alabama"]
@county_solr["state_county_name_tesim"].should == ["Madison"]
@county_solr["state_county_name_sim"].should == ["Madison"]
@county_solr["jurisdiction_tesim"].should == ["County"]
@county_solr["jurisdiction_sim"].should == ["County"]
@county_solr["jurisdiction_tesim"].should == ["State"]
@county_solr["jurisdiction_sim"].should == ["State"]


@county_solr["office_name_tesim"].should == ["House of Representatives"]
Expand Down
4 changes: 2 additions & 2 deletions spec/models/party_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
end

it 'indexes party by the :name' do
party = Party.find('Foo party')
party = Party.find('A123')

expect(party.id).to eq('A123')
expect(party.name).to eq('Foo party')
Expand All @@ -53,7 +53,7 @@
end

it 'returns the most recently-added party by id' do
party = Party.find('Third party')
party = Party.find('C987')

expect(party.description).to eq('A duplicate of Third Party')
end
Expand Down

0 comments on commit 42e0b03

Please sign in to comment.