This way we make sure editors which support navigating between one class and its test file can find the alternative files.
14 lines
282 B
Ruby
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
|