Skip to content

Commit c62fea8

Browse files
authored
Merge pull request #71 from buildkite/toote_spec_linter
Remove linter warnings in spec files
2 parents 136f445 + 7ba13a9 commit c62fea8

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

app/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ source 'https://rubygems.org'
44

55
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
66

7+
gem 'parslet'
78
gem 'rack'
89
gem 'rackup' # necessary for starting the HTTP interface
910
gem 'rouge'
10-
gem 'parslet'
1111

1212
group :development, :test do
1313
gem 'rspec'
1414
gem 'rspec-snapshot'
1515
gem 'rubocop'
16-
end
16+
end

app/spec/lib/bk/compat/circleci_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
require_relative '../../../../lib/bk/compat/parsers/circleci'
44

5-
65
RSpec.describe BK::Compat::CircleCI do
76
let(:circleci) { BK::Compat::CircleCI }
87

@@ -21,4 +20,4 @@
2120
end
2221
end
2322
end
24-
end
23+
end

app/spec/spec_helper.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# This file was generated by the `rspec --init` command. Conventionally, all
24
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
35
# The generated `.rspec` file contains `--require spec_helper` which will cause
@@ -44,9 +46,8 @@
4446
# triggering implicit auto-inclusion in groups with matching metadata.
4547
config.shared_context_metadata_behavior = :apply_to_host_groups
4648

47-
# The settings below are suggested to provide a good initial experience
48-
# with RSpec, but feel free to customize to your heart's content.
49-
=begin
49+
# The settings below are suggested to provide a good initial experience
50+
# with RSpec, but feel free to customize to your heart's content.
5051
# This allows you to limit a spec run to individual examples or groups
5152
# you care about by tagging them with `:focus` metadata. When nothing
5253
# is tagged with `:focus`, all examples get run. RSpec also provides
@@ -57,7 +58,7 @@
5758
# Allows RSpec to persist some state between runs in order to support
5859
# the `--only-failures` and `--next-failure` CLI options. We recommend
5960
# you configure your source control system to ignore this file.
60-
config.example_status_persistence_file_path = "spec/examples.txt"
61+
# config.example_status_persistence_file_path = "spec/examples.txt"
6162

6263
# Limits the available syntax to the non-monkey patched syntax that is
6364
# recommended. For more details, see:
@@ -66,7 +67,7 @@
6667

6768
# This setting enables warnings. It's recommended, but in some cases may
6869
# be too noisy due to issues in dependencies.
69-
config.warnings = true
70+
# config.warnings = true
7071

7172
# Many RSpec users commonly either run the entire suite or an individual
7273
# file, and it's useful to allow more verbose output when running an
@@ -75,24 +76,23 @@
7576
# Use the documentation formatter for detailed output,
7677
# unless a formatter has already been configured
7778
# (e.g. via a command-line flag).
78-
config.default_formatter = "doc"
79+
config.default_formatter = 'doc'
7980
end
8081

8182
# Print the 10 slowest examples and example groups at the
8283
# end of the spec run, to help surface which specs are running
8384
# particularly slow.
84-
config.profile_examples = 10
85+
# config.profile_examples = 10
8586

8687
# Run specs in random order to surface order dependencies. If you find an
8788
# order dependency and want to debug it, you can fix the order by providing
8889
# the seed, which is printed after each run.
8990
# --seed 1234
90-
config.order = :random
91+
# config.order = :random
9192

9293
# Seed global randomization in this process using the `--seed` CLI option.
9394
# Setting this allows you to use `--seed` to deterministically reproduce
9495
# test failures related to randomization by passing the same `--seed` value
9596
# as the one that triggered the failure.
96-
Kernel.srand config.seed
97-
=end
97+
# Kernel.srand config.seed
9898
end

0 commit comments

Comments
 (0)