Renames "open" to "current" to avoid issues with existing method called "open"

This commit is contained in:
kikito
2016-12-13 12:39:53 +01:00
parent f4130047b2
commit 2f446cf056
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ class Admin::BudgetsController < Admin::BaseController
include FeatureFlags
feature_flag :budgets
has_filters %w{open finished}, only: :index
has_filters %w{current finished}, only: :index
load_and_authorize_resource

View File

@@ -47,7 +47,7 @@ feature 'Admin 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)
@@ -56,7 +56,7 @@ feature 'Admin budgets' do
end
scenario 'Current filter is properly highlighted' do
filters_links = {'open' => 'Open', 'finished' => 'Finished'}
filters_links = {'current' => 'Current', 'finished' => 'Finished'}
visit admin_budgets_path
@@ -158,4 +158,4 @@ feature 'Admin budgets' do
end
end
end
end