Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus_cqrs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
nexus_cqrs
Commits
2b782f89
Commit
2b782f89
authored
4 years ago
by
Rory Jennings
Browse files
Options
Downloads
Patches
Plain Diff
test: fix test failures
parent
815edcfc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
fix: add a newline and an instantiator to generators
Pipeline
#8364
passed
4 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spec/lib/generators/command_generator_spec.rb
+2
-2
2 additions, 2 deletions
spec/lib/generators/command_generator_spec.rb
spec/lib/generators/query_generator_spec.rb
+2
-2
2 additions, 2 deletions
spec/lib/generators/query_generator_spec.rb
with
4 additions
and
4 deletions
spec/lib/generators/command_generator_spec.rb
+
2
−
2
View file @
2b782f89
...
@@ -16,7 +16,7 @@ describe NexusCqrs::CommandGenerator, type: :generator do
...
@@ -16,7 +16,7 @@ describe NexusCqrs::CommandGenerator, type: :generator do
end
end
it
"creates the registration config file for handlers"
do
it
"creates the registration config file for handlers"
do
line
=
"$COMMAND_EXECUTOR.register_command(TestCommand, TestCommandHandler)"
line
=
"$COMMAND_EXECUTOR.register_command(TestCommand, TestCommandHandler
.new
)"
base_path
=
File
.
expand_path
(
"../../tmp"
,
__FILE__
)
base_path
=
File
.
expand_path
(
"../../tmp"
,
__FILE__
)
expect
(
File
.
read
(
base_path
+
"/config/initializers/register_cqrs_handlers.rb"
)).
to
(
include
(
line
))
expect
(
File
.
read
(
base_path
+
"/config/initializers/register_cqrs_handlers.rb"
)).
to
(
include
(
line
))
end
end
...
@@ -34,7 +34,7 @@ describe NexusCqrs::CommandGenerator, type: :generator do
...
@@ -34,7 +34,7 @@ describe NexusCqrs::CommandGenerator, type: :generator do
end
end
it
"creates the registration config file for handlers"
do
it
"creates the registration config file for handlers"
do
line
=
"$COMMAND_EXECUTOR.register_command(Test::TestCommand, Test::TestCommandHandler)"
line
=
"$COMMAND_EXECUTOR.register_command(Test::TestCommand, Test::TestCommandHandler
.new
)"
base_path
=
File
.
expand_path
(
"../../tmp"
,
__FILE__
)
base_path
=
File
.
expand_path
(
"../../tmp"
,
__FILE__
)
expect
(
File
.
read
(
base_path
+
"/config/initializers/register_cqrs_handlers.rb"
)).
to
(
include
(
line
))
expect
(
File
.
read
(
base_path
+
"/config/initializers/register_cqrs_handlers.rb"
)).
to
(
include
(
line
))
end
end
...
...
This diff is collapsed.
Click to expand it.
spec/lib/generators/query_generator_spec.rb
+
2
−
2
View file @
2b782f89
...
@@ -16,7 +16,7 @@ describe NexusCqrs::QueryGenerator, type: :generator do
...
@@ -16,7 +16,7 @@ describe NexusCqrs::QueryGenerator, type: :generator do
end
end
it
"creates the registration config file for handlers"
do
it
"creates the registration config file for handlers"
do
line
=
"$QUERY_EXECUTOR.register_command(TestQuery, TestQueryHandler)"
line
=
"$QUERY_EXECUTOR.register_command(TestQuery, TestQueryHandler
.new
)"
base_path
=
File
.
expand_path
(
"../../tmp"
,
__FILE__
)
base_path
=
File
.
expand_path
(
"../../tmp"
,
__FILE__
)
expect
(
File
.
read
(
base_path
+
"/config/initializers/register_cqrs_handlers.rb"
)).
to
(
include
(
line
))
expect
(
File
.
read
(
base_path
+
"/config/initializers/register_cqrs_handlers.rb"
)).
to
(
include
(
line
))
end
end
...
@@ -34,7 +34,7 @@ describe NexusCqrs::QueryGenerator, type: :generator do
...
@@ -34,7 +34,7 @@ describe NexusCqrs::QueryGenerator, type: :generator do
end
end
it
"creates the registration config file for handlers"
do
it
"creates the registration config file for handlers"
do
line
=
"$QUERY_EXECUTOR.register_command(Test::TestQuery, Test::TestQueryHandler)"
line
=
"$QUERY_EXECUTOR.register_command(Test::TestQuery, Test::TestQueryHandler
.new
)"
base_path
=
File
.
expand_path
(
"../../tmp"
,
__FILE__
)
base_path
=
File
.
expand_path
(
"../../tmp"
,
__FILE__
)
expect
(
File
.
read
(
base_path
+
"/config/initializers/register_cqrs_handlers.rb"
)).
to
(
include
(
line
))
expect
(
File
.
read
(
base_path
+
"/config/initializers/register_cqrs_handlers.rb"
)).
to
(
include
(
line
))
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment