We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Rails/UnknownEnv
1 parent ea1fae9 commit e0fd6e9Copy full SHA for e0fd6e9
spec/rubocop/cop/rails/unknown_env_spec.rb
@@ -84,25 +84,8 @@
84
RUBY
85
end
86
87
- context 'Rails 7.1' do
88
- let(:config) do
89
- RuboCop::Config.new(
90
- {
91
- 'AllCops' => {
92
- 'TargetRailsVersion' => '7.1'
93
- },
94
- 'Rails/UnknownEnv' => {
95
- 'Environments' => %w[
96
- development
97
- production
98
- test
99
- ]
100
- }
101
102
- )
103
- end
104
-
105
- it 'accepts local as an environment name on Rails 7.1' do
+ context 'when Rails 7.1 or newer', :rails71 do
+ it 'accepts local as an environment name' do
106
expect_no_offenses(<<~RUBY)
107
Rails.env.local?
108
Rails.env == 'local'
0 commit comments