Skip to content

Commit

Permalink
Increase Budget model spec for new publishing_prices phase
Browse files Browse the repository at this point in the history
  • Loading branch information
bertocq committed Jan 10, 2018
1 parent f350b99 commit cb1151f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/models/budget_spec.rb
Expand Up @@ -55,6 +55,9 @@
budget.phase = "valuating"
expect(budget).to be_valuating

budget.phase = "publishing_prices"
expect(budget).to be_publishing_prices

budget.phase = "balloting"
expect(budget).to be_balloting

Expand All @@ -81,6 +84,9 @@
budget.phase = "valuating"
expect(budget).to be_on_hold

budget.phase = "publishing_prices"
expect(budget).to be_on_hold

budget.phase = "balloting"
expect(budget).not_to be_on_hold

Expand All @@ -107,6 +113,9 @@
budget.phase = "valuating"
expect(budget).not_to be_balloting_or_later

budget.phase = "publishing_prices"
expect(budget).not_to be_balloting_or_later

budget.phase = "balloting"
expect(budget).to be_balloting_or_later

Expand Down Expand Up @@ -142,6 +151,8 @@
expect(budget.investments_orders).to eq(['random'])
end
it "is random and price when ballotting and reviewing ballots" do
budget.phase = 'publishing_prices'
expect(budget.investments_orders).to eq(['random', 'price'])
budget.phase = 'balloting'
expect(budget.investments_orders).to eq(['random', 'price'])
budget.phase = 'reviewing_ballots'
Expand Down

0 comments on commit cb1151f

Please sign in to comment.