Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
0
Merge Requests
0
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-shell
Commits
724d7c2f
Commit
724d7c2f
authored
Jul 26, 2018
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Guardfile
* Fix lib matcher so it actually runs specs * Strip out only what we need/use
parent
93b3b92d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
Guardfile
Guardfile
+2
-18
No files found.
Guardfile
View file @
724d7c2f
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
# More info at https://github.com/guard/guard#readme
guard
'
rspec'
do
guard
:rspec
,
cmd:
'bundle exec
rspec'
do
watch
(
%r{^spec/.+_spec
\.
rb$}
)
watch
(
%r{^spec/.+_spec
\.
rb$}
)
watch
(
%r{^lib/(.+)
\.
rb$}
)
{
|
m
|
"spec/
lib/
#{
m
[
1
]
}
_spec.rb"
}
watch
(
%r{^lib/(.+)
\.
rb$}
)
{
|
m
|
"spec/
#{
m
[
1
]
}
_spec.rb"
}
watch
(
'spec/spec_helper.rb'
)
{
"spec"
}
watch
(
'spec/spec_helper.rb'
)
{
"spec"
}
# Rails example
watch
(
%r{^app/(.+)
\.
rb$}
)
{
|
m
|
"spec/
#{
m
[
1
]
}
_spec.rb"
}
watch
(
%r{^app/(.*)(
\.
erb|
\.
haml)$}
)
{
|
m
|
"spec/
#{
m
[
1
]
}#{
m
[
2
]
}
_spec.rb"
}
watch
(
%r{^app/controllers/(.+)_(controller)
\.
rb$}
)
{
|
m
|
[
"spec/routing/
#{
m
[
1
]
}
_routing_spec.rb"
,
"spec/
#{
m
[
2
]
}
s/
#{
m
[
1
]
}
_
#{
m
[
2
]
}
_spec.rb"
,
"spec/acceptance/
#{
m
[
1
]
}
_spec.rb"
]
}
watch
(
%r{^spec/support/(.+)
\.
rb$}
)
{
"spec"
}
watch
(
'config/routes.rb'
)
{
"spec/routing"
}
watch
(
'app/controllers/application_controller.rb'
)
{
"spec/controllers"
}
# Capybara features specs
watch
(
%r{^app/views/(.+)/.*
\.
(erb|haml)$}
)
{
|
m
|
"spec/features/
#{
m
[
1
]
}
_spec.rb"
}
# Turnip features and steps
watch
(
%r{^spec/acceptance/(.+)
\.
feature$}
)
watch
(
%r{^spec/acceptance/steps/(.+)_steps
\.
rb$}
)
{
|
m
|
Dir
[
File
.
join
(
"**/
#{
m
[
1
]
}
.feature"
)][
0
]
||
'spec/acceptance'
}
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