Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rspec-rails-swagger
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
rspec-rails-swagger
Commits
1760aa7f
Commit
1760aa7f
authored
Apr 05, 2017
by
andrew morton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow Rubocop's style suggestions
parent
1d03466d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
formatter.rb
lib/rspec/rails/swagger/formatter.rb
+4
-4
request_builder.rb
lib/rspec/rails/swagger/request_builder.rb
+2
-1
No files found.
lib/rspec/rails/swagger/formatter.rb
View file @
1760aa7f
...
...
@@ -17,19 +17,19 @@ module RSpec
end
def
example_group_started
(
notification
)
output
.
print
*
group_output
(
notification
)
output
.
print
(
*
group_output
(
notification
)
)
end
def
example_passed
(
notification
)
output
.
print
RSpec
::
Core
::
Formatters
::
ConsoleCodes
.
wrap
(
example_output
(
notification
),
:success
)
output
.
print
(
RSpec
::
Core
::
Formatters
::
ConsoleCodes
.
wrap
(
example_output
(
notification
),
:success
)
)
end
def
example_pending
(
notification
)
output
.
print
RSpec
::
Core
::
Formatters
::
ConsoleCodes
.
wrap
(
example_output
(
notification
),
:pending
)
output
.
print
(
RSpec
::
Core
::
Formatters
::
ConsoleCodes
.
wrap
(
example_output
(
notification
),
:pending
)
)
end
def
example_failed
(
notification
)
output
.
print
RSpec
::
Core
::
Formatters
::
ConsoleCodes
.
wrap
(
example_output
(
notification
),
:failure
)
output
.
print
(
RSpec
::
Core
::
Formatters
::
ConsoleCodes
.
wrap
(
example_output
(
notification
),
:failure
)
)
end
def
example_finished
(
notification
)
...
...
lib/rspec/rails/swagger/request_builder.rb
View file @
1760aa7f
...
...
@@ -99,7 +99,8 @@ module RSpec
def
body
# And here all we need is the first half of the key to find the body
# parameter and its name to fetch a value.
if
key
=
parameters
(
:body
).
keys
.
first
key
=
parameters
(
:body
).
keys
.
first
if
key
instance
.
send
(
key
.
split
(
'&'
).
last
).
to_json
end
end
...
...
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