Skip to content

Commit

Permalink
Rubocop!
Browse files Browse the repository at this point in the history
  • Loading branch information
zspencer committed Mar 2, 2023
1 parent d572148 commit d137bc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions spec/models/feature_spec.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
require "rails_helper"
RSpec.describe Feature do
subject(:Feature) { Feature }
describe ".enabled?(feature_name)" do
it "is only true when the feature name is set to 'true' in the ENV" do
stub_const("ENV", "FEATURE_FOO" => "true", "FEATURE_BAR" => "yes")
before { stub_const("ENV", "FEATURE_FOO" => "true", "FEATURE_BAR" => "yes") }

expect(Feature.enabled?(:foo)).to be_truthy
expect(Feature.enabled?(:bar)).not_to be_truthy
expect(Feature.enabled?(:baz)).not_to be_truthy
end
it { is_expected.to be_enabled(:foo) }
it { is_expected.not_to be_enabled(:bar) }
it { is_expected.not_to be_enabled(:baz) }
end
end
2 changes: 1 addition & 1 deletion spec/requests/authentication_methods_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "swagger_helper"

RSpec.describe "/authentication_methods/", type: :request do
RSpec.describe "/authentication_methods/" do
path "/authentication_methods" do
include ApiHelpers::Path

Expand Down

0 comments on commit d137bc8

Please sign in to comment.