Browse Source

Enable 23-24 feature flag in production

pull/1498/head
James Rose 3 years ago
parent
commit
a0abe47ca5
  1. 2
      config/initializers/feature_toggle.rb
  2. 16
      spec/helpers/filters_helper_spec.rb

2
config/initializers/feature_toggle.rb

@ -55,6 +55,6 @@ class FeatureToggle
end
def self.collection_2023_2024_year_enabled?
!Rails.env.production?
true
end
end

16
spec/helpers/filters_helper_spec.rb

@ -118,7 +118,6 @@ RSpec.describe FiltersHelper do
end
describe "#collection_year_options" do
context "when not production" do
it "includes 2023/2024 option" do
expect(collection_year_options).to eq(
{
@ -127,19 +126,4 @@ RSpec.describe FiltersHelper do
)
end
end
context "when production" do
before do
allow(Rails.env).to receive(:production?).and_return(true)
end
it "includes 2023/2024 option" do
expect(collection_year_options).to eq(
{
"2021": "2021/22", "2022": "2022/23"
},
)
end
end
end
end

Loading…
Cancel
Save