Browse Source

style: correct indentation in spec/helpers/schemes_helper_spec.rb

pull/987/head
Sam Seed 4 years ago
parent
commit
e8bb7d638d
  1. 14
      spec/helpers/schemes_helper_spec.rb

14
spec/helpers/schemes_helper_spec.rb

@ -1,8 +1,8 @@
require "rails_helper"
require "rails_helper"
include TagHelper
include TagHelper
RSpec.describe SchemesHelper do
RSpec.describe SchemesHelper do
describe "Active periods" do
let(:scheme) { FactoryBot.create(:scheme, created_at: Time.zone.today) }
@ -160,6 +160,14 @@
end
end
context "when the scheme toggle is disabled" do
it "doesn't show the scheme status" do
allow(FeatureToggle).to receive(:scheme_toggle_enabled?).and_return(false)
attributes = display_scheme_attributes(scheme, support_user).find { |x| x[:name] == "Status" }
expect(attributes).to be_nil
end
end
context "when viewing availability" do
context "with no deactivations" do
it "displays created_at as availability date" do

Loading…
Cancel
Save