forked from consuldemocracy/consuldemocracy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request consuldemocracy#3822 from consul/finished_budgets
Fix admin permissions for finished budgets
- Loading branch information
Showing
8 changed files
with
74 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1017,7 +1017,7 @@ | |
expect(page).to have_content("Ana ([email protected])") | ||
end | ||
|
||
scenario "Not show related content or hide links on preview" do | ||
scenario "Does not show related content or hide links on preview" do | ||
budget_investment = create(:budget_investment, | ||
:unfeasible, | ||
price: 1234, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -283,23 +283,6 @@ | |
visit valuation_budget_budget_investment_path(budget, investment) | ||
end.to raise_error "Not Found" | ||
end | ||
|
||
scenario "preview is visible" do | ||
logout | ||
login_as create(:administrator).user | ||
|
||
visit valuation_budget_budget_investment_path(budget, investment) | ||
|
||
expect(page).to have_content("Investment preview") | ||
expect(page).to have_content(investment.title) | ||
expect(page).to have_content(investment.description) | ||
expect(page).to have_content(investment.author.name) | ||
expect(page).to have_content(investment.heading.name) | ||
expect(page).to have_content("1234") | ||
expect(page).to have_content("Unfeasible") | ||
expect(page).to have_content("It is impossible") | ||
expect(page).to have_content("Ana ([email protected])") | ||
end | ||
end | ||
|
||
describe "Valuate" do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters