Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Markech
refinerycms-news
Commits
03cd276b
Commit
03cd276b
authored
Jul 10, 2012
by
Uģis Ozols
Browse files
Bump up spork in the Guardfile so that it loads first. Add --color to .rspec.
parent
2eefca78
Changes
3
Hide whitespace changes
Inline
Side-by-side
.rspec
0 → 100644
View file @
03cd276b
--color
Guardfile
View file @
03cd276b
guard
'rspec'
,
:version
=>
2
,
:cli
=>
"--color"
do
guard
'spork'
,
:wait
=>
60
,
:rspec_env
=>
{
'RAILS_ENV'
=>
'test'
}
do
watch
(
'config/application.rb'
)
watch
(
'config/environment.rb'
)
watch
(
%r{^config/environments/.+
\.
rb$}
)
watch
(
%r{^config/initializers/.+
\.
rb$}
)
watch
(
'spec/spec_helper.rb'
)
end
guard
'rspec'
,
:version
=>
2
,
:cli
=>
"--color --drb"
do
watch
(
%r{^spec/.+_spec
\.
rb$}
)
watch
(
%r{^app/(.+)
\.
rb$}
)
{
|
m
|
"spec/
#{
m
[
1
]
}
_spec.rb"
}
watch
(
%r{^lib/(.+)
\.
rb$}
)
{
|
m
|
"spec/lib/
#{
m
[
1
]
}
_spec.rb"
}
watch
(
%r{^app/controllers/(.+)_(controller)
\.
rb$}
)
{
|
m
|
[
"spec/routing/
#{
m
[
1
]
}
_routing_spec.rb"
,
"spec/controllers/
#{
m
[
1
]
}
_
#{
m
[
2
]
}
_spec.rb"
,
"spec/requests/
#{
m
[
1
]
}
_spec.rb"
]
}
watch
(
%r{^spec/support/(.+)
\.
rb$}
)
{
"spec"
}
watch
(
'spec/spec_helper.rb'
)
{
"spec"
}
watch
(
'config/routes.rb'
)
{
"spec/routing"
}
watch
(
'app/controllers/application_controller.rb'
)
{
"spec/controllers"
}
# Capybara request specs
watch
(
%r{^app/views/(.+)/.*
\.
(erb|haml)$}
)
{
|
m
|
"spec/requests/
#{
m
[
1
]
}
_spec.rb"
}
end
guard
'spork'
,
:wait
=>
60
,
:cucumber
=>
false
,
:rspec_env
=>
{
'RAILS_ENV'
=>
'test'
}
do
watch
(
'config/application.rb'
)
watch
(
'config/environment.rb'
)
watch
(
%r{^config/environments/.+
\.
rb$}
)
watch
(
%r{^config/initializers/.+
\.
rb$}
)
watch
(
'spec/spec_helper.rb'
)
end
spec/models/refinery/news/item_spec.rb
View file @
03cd276b
...
...
@@ -88,4 +88,4 @@ module Refinery
end
end
end
end
\ No newline at end of file
end
Write
Preview
Supports
Markdown
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