Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/finders/environments/environments_finder_spec.rb')
-rw-r--r--spec/finders/environments/environments_finder_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/finders/environments/environments_finder_spec.rb b/spec/finders/environments/environments_finder_spec.rb
index df66bbdc235..e3b1a121497 100644
--- a/spec/finders/environments/environments_finder_spec.rb
+++ b/spec/finders/environments/environments_finder_spec.rb
@@ -24,13 +24,13 @@ RSpec.describe Environments::EnvironmentsFinder do
end
it 'returns environments with any of the requested states' do
- result = described_class.new(project, user, states: %w(available stopped)).execute
+ result = described_class.new(project, user, states: %w[available stopped]).execute
expect(result).to contain_exactly(environment, environment_stopped, environment_available, stopped_environment)
end
it 'raises exception when requested state is invalid' do
- expect { described_class.new(project, user, states: %w(invalid stopped)).execute }.to(
+ expect { described_class.new(project, user, states: %w[invalid stopped]).execute }.to(
raise_error(described_class::InvalidStatesError, 'Requested states are invalid')
)
end