Fixes specs

This commit is contained in:
Alberto Garcia Cabeza
2016-02-17 15:22:12 +01:00
parent ca39fdfdb5
commit c374e3f560
2 changed files with 2 additions and 2 deletions

View File

@@ -1175,7 +1175,7 @@ feature 'Proposals' do
create(:proposal, tag_list: 'Random')
visit proposals_path
click_link "The most supported proposals"
click_link "The most supported proposals by category"
within("#culture") do
expect(page).to have_content("Culture")

View File

@@ -690,7 +690,7 @@ describe Proposal do
proposal2 = create(:proposal, tag_list: 'Culture')
proposal3 = create(:proposal, tag_list: 'Health')
expect(Proposal.for_summary).to include('Culture' => [proposal2, proposal1], 'Health' => [proposal3])
expect(Proposal.for_summary).to include('Culture' => [proposal1, proposal2], 'Health' => [proposal3])
end
end