diff --git a/app/controllers/valuation/budgets_controller.rb b/app/controllers/valuation/budgets_controller.rb index e96d018dd..3b470101f 100644 --- a/app/controllers/valuation/budgets_controller.rb +++ b/app/controllers/valuation/budgets_controller.rb @@ -2,7 +2,7 @@ class Valuation::BudgetsController < Valuation::BaseController include FeatureFlags feature_flag :budgets - has_filters %w{open finished}, only: :index + has_filters %w{current finished}, only: :index load_and_authorize_resource @@ -10,4 +10,4 @@ class Valuation::BudgetsController < Valuation::BaseController @budgets = Budget.send(@current_filter).order(created_at: :desc).page(params[:page]) end -end \ No newline at end of file +end diff --git a/spec/features/valuation/budgets_spec.rb b/spec/features/valuation/budgets_spec.rb index 0f61b8078..11c20f26e 100644 --- a/spec/features/valuation/budgets_spec.rb +++ b/spec/features/valuation/budgets_spec.rb @@ -42,7 +42,7 @@ feature 'Valuation budgets' do expect(page).to_not have_content(budget4.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(budget2.name) expect(page).to have_content(budget3.name) @@ -51,7 +51,7 @@ feature 'Valuation budgets' do end scenario 'Current filter is properly highlighted' do - filters_links = {'open' => 'Open', 'finished' => 'Finished'} + filters_links = {'current' => 'Current', 'finished' => 'Finished'} visit valuation_budgets_path @@ -71,4 +71,4 @@ feature 'Valuation budgets' do end -end \ No newline at end of file +end