Files
nairobi/spec/controllers/sdg/goals_controller_spec.rb
Javi Martín 535a039a31 Add and apply RSpec/FilePath rubocop rule
This way we make sure editors which support navigating between one class
and its test file can find the alternative files.
2021-08-09 16:51:59 +02:00

14 lines
282 B
Ruby

require "rails_helper"
describe SDG::GoalsController do
context "featured disabled" do
before do
Setting["feature.sdg"] = false
end
it "raises feature disabled" do
expect { get :index }.to raise_exception(FeatureFlags::FeatureDisabled)
end
end
end