Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
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
annotate
Commits
120a0c49
Commit
120a0c49
authored
Aug 22, 2012
by
Jon Frisby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make this mock more representative of actual rake output.
parent
fba0ca0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
annotate_routes_spec.rb
spec/annotate/annotate_routes_spec.rb
+1
-1
No files found.
spec/annotate/annotate_routes_spec.rb
View file @
120a0c49
...
@@ -19,7 +19,7 @@ describe AnnotateRoutes do
...
@@ -19,7 +19,7 @@ describe AnnotateRoutes do
before
(
:each
)
do
before
(
:each
)
do
File
.
should_receive
(
:exists?
).
with
(
"config/routes.rb"
).
and_return
(
true
)
File
.
should_receive
(
:exists?
).
with
(
"config/routes.rb"
).
and_return
(
true
)
AnnotateRoutes
.
should_receive
(
:`
).
with
(
"rake routes"
).
and_return
(
"
bad line
\n
good line"
)
AnnotateRoutes
.
should_receive
(
:`
).
with
(
"rake routes"
).
and_return
(
"
(in /bad/line)
\n
good line"
)
File
.
should_receive
(
:open
).
with
(
"config/routes.rb"
,
"wb"
).
and_yield
(
mock_file
)
File
.
should_receive
(
:open
).
with
(
"config/routes.rb"
,
"wb"
).
and_yield
(
mock_file
)
AnnotateRoutes
.
should_receive
(
:puts
).
with
(
"Route file annotated."
)
AnnotateRoutes
.
should_receive
(
:puts
).
with
(
"Route file annotated."
)
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