summaryrefslogtreecommitdiff
path: root/spec/helpers/projects
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
committerToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
commit62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch)
treec3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /spec/helpers/projects
parentf6453eca992a9c142268e78ac782cef98110d183 (diff)
downloadgitlab-ce-tc-standard-gem.tar.gz
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'spec/helpers/projects')
-rw-r--r--spec/helpers/projects/error_tracking_helper_spec.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/spec/helpers/projects/error_tracking_helper_spec.rb b/spec/helpers/projects/error_tracking_helper_spec.rb
index 7516a636c93..436e6bac9fb 100644
--- a/spec/helpers/projects/error_tracking_helper_spec.rb
+++ b/spec/helpers/projects/error_tracking_helper_spec.rb
@@ -1,55 +1,55 @@
# frozen_string_literal: true
-require 'spec_helper'
+require "spec_helper"
describe Projects::ErrorTrackingHelper do
include Gitlab::Routing.url_helpers
set(:project) { create(:project) }
- describe '#error_tracking_data' do
+ describe "#error_tracking_data" do
let(:setting_path) { project_settings_operations_path(project) }
let(:index_path) do
project_error_tracking_index_path(project, format: :json)
end
- context 'without error_tracking_setting' do
- it 'returns frontend configuration' do
+ context "without error_tracking_setting" do
+ it "returns frontend configuration" do
expect(error_tracking_data(project)).to eq(
- 'index-path' => index_path,
- 'enable-error-tracking-link' => setting_path,
- 'error-tracking-enabled' => 'false',
+ "index-path" => index_path,
+ "enable-error-tracking-link" => setting_path,
+ "error-tracking-enabled" => "false",
"illustration-path" => "/images/illustrations/cluster_popover.svg"
)
end
end
- context 'with error_tracking_setting' do
+ context "with error_tracking_setting" do
let(:error_tracking_setting) do
create(:project_error_tracking_setting, project: project)
end
- context 'when enabled' do
+ context "when enabled" do
before do
error_tracking_setting.update!(enabled: true)
end
- it 'show error tracking enabled' do
+ it "show error tracking enabled" do
expect(error_tracking_data(project)).to include(
- 'error-tracking-enabled' => 'true'
+ "error-tracking-enabled" => "true"
)
end
end
- context 'when disabled' do
+ context "when disabled" do
before do
error_tracking_setting.update!(enabled: false)
end
- it 'show error tracking not enabled' do
+ it "show error tracking not enabled" do
expect(error_tracking_data(project)).to include(
- 'error-tracking-enabled' => 'false'
+ "error-tracking-enabled" => "false"
)
end
end