Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
868c633e
Commit
868c633e
authored
Jul 27, 2020
by
Uday Aggarwal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added fast_spec_helper in 2 more files
parent
9e17f242
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
spec/rubocop/cop/avoid_return_from_blocks_spec.rb
spec/rubocop/cop/avoid_return_from_blocks_spec.rb
+3
-4
spec/rubocop/cop/migration/drop_table_spec.rb
spec/rubocop/cop/migration/drop_table_spec.rb
+2
-5
No files found.
spec/rubocop/cop/avoid_return_from_blocks_spec.rb
View file @
868c633e
# frozen_string_literal: true
require
'spec_helper'
require
'
fast_
spec_helper'
require
'rubocop'
require
'rubocop/rspec/support'
require_relative
'../../../rubocop/cop/avoid_return_from_blocks'
RSpec
.
describe
RuboCop
::
Cop
::
AvoidReturnFromBlocks
do
RSpec
.
describe
RuboCop
::
Cop
::
AvoidReturnFromBlocks
,
type: :rubocop
do
include
CopHelper
subject
(
:cop
)
{
described_class
.
new
}
...
...
@@ -29,7 +28,7 @@ RSpec.describe RuboCop::Cop::AvoidReturnFromBlocks do
end
end
RUBY
expect_
next
_instance_of
(
described_class
)
do
|
instance
|
expect_
any
_instance_of
(
described_class
)
do
|
instance
|
expect
(
instance
).
to
receive
(
:add_offense
).
once
end
...
...
spec/rubocop/cop/migration/drop_table_spec.rb
View file @
868c633e
# frozen_string_literal: true
require
'spec_helper'
require
'fast_spec_helper'
require
'rubocop'
require
'rubocop/rspec/support'
require_relative
'../../../../rubocop/cop/migration/drop_table'
RSpec
.
describe
RuboCop
::
Cop
::
Migration
::
DropTable
do
RSpec
.
describe
RuboCop
::
Cop
::
Migration
::
DropTable
,
type: :rubocop
do
include
CopHelper
subject
(
:cop
)
{
described_class
.
new
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment