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
3abae1a7
Commit
3abae1a7
authored
Nov 10, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve QA test scenario entrypoint specs
parent
6dc5dab7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
qa/spec/scenario/entrypoint_spec.rb
qa/spec/scenario/entrypoint_spec.rb
+7
-7
No files found.
qa/spec/scenario/entrypoint_spec.rb
View file @
3abae1a7
...
...
@@ -6,23 +6,23 @@ describe QA::Scenario::Entrypoint do
end
context
'#perform'
do
let
(
:
config
)
{
spy
(
'Specs::Config
'
)
}
let
(
:
arguments
)
{
spy
(
'Runtime::Scenario
'
)
}
let
(
:release
)
{
spy
(
'Runtime::Release'
)
}
let
(
:runner
)
{
spy
(
'Specs::Runner'
)
}
before
do
allow
(
config
).
to
receive
(
:perform
)
{
|&
block
|
block
.
call
config
}
allow
(
runner
).
to
receive
(
:perform
)
{
|&
block
|
block
.
call
runner
}
stub_const
(
'QA::Specs::Config'
,
config
)
stub_const
(
'QA::Runtime::Release'
,
release
)
stub_const
(
'QA::Runtime::Scenario'
,
arguments
)
stub_const
(
'QA::Specs::Runner'
,
runner
)
allow
(
runner
).
to
receive
(
:perform
).
and_yield
(
runner
)
end
it
's
hould set address
'
do
it
's
ets an address of the subject
'
do
subject
.
perform
(
"hello"
)
expect
(
config
).
to
have_received
(
:address
=
).
with
(
"hello"
)
expect
(
arguments
).
to
have_received
(
:define
)
.
with
(
:gitlab_address
,
"hello"
)
end
context
'no paths'
do
...
...
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