AyuntamientoMadrid/participacion

View on GitHub
spec/controllers/moderation/debates_controller_spec.rb

Summary

Maintainability
A
25 mins
Test Coverage
require "rails_helper"

describe Moderation::DebatesController do
  before { sign_in(create(:moderator).user) }

  describe "GET index" do
    it "raises an exception when the feature is disabled" do
      Setting["process.debates"] = false

      expect { get :index }.to raise_exception(FeatureFlags::FeatureDisabled)
    end
  end
end