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.
This commit is contained in:
Javi Martín
2021-08-09 16:43:33 +02:00
parent 126f7bfb97
commit 535a039a31
7 changed files with 3 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
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