Skip to content

Commit 86db9eb

Browse files
committed
Fix extra lines, wrong indentation, too long lines
1 parent 0b877c5 commit 86db9eb

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

example_app_generator/spec/verify_custom_renderers_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ def index
3737
expect(response).to render_template(:bar)
3838
end
3939

40-
it "renders an empty string" do
41-
skip if Rails::VERSION::STRING.to_f >= 6.0
40+
it "renders an empty string", :skip => Rails::VERSION::STRING.to_f >= 6.0 do
4241
get :index
4342

4443
expect(response.body).to eq("")

features/backtrace_filtering.feature

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
Feature: backtrace filtering
22

3-
The following configuration setting will filter out lines in backtraces that come from Rails gems in order to reduce the noise in test failure output:
3+
The following configuration setting will filter out lines in backtraces
4+
that come from Rails gems in order to reduce the noise in test failure output:
45

56
```ruby
67
RSpec.configure do |config|
78
config.filter_rails_from_backtrace!
89
end
910
```
1011

11-
`rspec` will always show the full backtrace output when run with the `--backtrace` commandline option.
12+
`rspec` will always show the full backtrace output when run with
13+
the `--backtrace` commandline option.
1214

1315
Background: Using `filter_rails_from_backtrace!`
1416
Given a file named "spec/failing_spec.rb" with:

features/matchers/have_broadcasted_matcher.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@rails_post_6
22
Feature: have_broadcasted matcher
33

4-
The `have_broadcasted_to` (also aliased as `broadcast_to`) matcher is used to check if a message has been broadcasted to a given stream.
4+
The `have_broadcasted_to` (also aliased as `broadcast_to`) matcher is used
5+
to check if a message has been broadcasted to a given stream.
56

67
Background:
78
Given action cable testing is available

spec/generators/rspec/mailbox/mailbox_generator_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@
1313
it { is_expected.to exist }
1414
it { is_expected.to contain(/require 'rails_helper'/) }
1515
it { is_expected.to contain(/describe ForwardsMailbox, #{type_metatag(:mailbox)}/) }
16-
1716
end
1817
end

spec/rspec/rails/example/view_example_group_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def _assigns
162162
expect(view_spec.received.first).to eq([{:template => "widgets/new.en.html.erb"}, {}, nil])
163163
end
164164
end
165-
end
165+
end
166166

167167
context "given a string" do
168168
it "sends string as the first arg to render" do

spec/rspec/rails/matchers/action_cable/have_broadcasted_to_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def broadcast(stream, msg)
194194
}
195195
end
196196

197-
198197
context "when object is passed as first argument" do
199198
let(:model) { CableGlobalIdModel.new(42) }
200199

0 commit comments

Comments
 (0)