Merge pull request #1293 from consul/budgets-valuation
Fixes valuation features
This commit is contained in:
@@ -2,7 +2,7 @@ class Valuation::BudgetsController < Valuation::BaseController
|
|||||||
include FeatureFlags
|
include FeatureFlags
|
||||||
feature_flag :budgets
|
feature_flag :budgets
|
||||||
|
|
||||||
has_filters %w{open finished}, only: :index
|
has_filters %w{current finished}, only: :index
|
||||||
|
|
||||||
load_and_authorize_resource
|
load_and_authorize_resource
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ feature 'Valuation budgets' do
|
|||||||
expect(page).to_not have_content(budget4.name)
|
expect(page).to_not have_content(budget4.name)
|
||||||
expect(page).to have_content(budget5.name)
|
expect(page).to have_content(budget5.name)
|
||||||
|
|
||||||
click_link 'Open'
|
click_link 'Current'
|
||||||
expect(page).to have_content(budget1.name)
|
expect(page).to have_content(budget1.name)
|
||||||
expect(page).to have_content(budget2.name)
|
expect(page).to have_content(budget2.name)
|
||||||
expect(page).to have_content(budget3.name)
|
expect(page).to have_content(budget3.name)
|
||||||
@@ -51,7 +51,7 @@ feature 'Valuation budgets' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
scenario 'Current filter is properly highlighted' do
|
scenario 'Current filter is properly highlighted' do
|
||||||
filters_links = {'open' => 'Open', 'finished' => 'Finished'}
|
filters_links = {'current' => 'Current', 'finished' => 'Finished'}
|
||||||
|
|
||||||
visit valuation_budgets_path
|
visit valuation_budgets_path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user