mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
guard rspec upgrade
This commit is contained in:
parent
ef875bba12
commit
05fb871a40
2 changed files with 24 additions and 24 deletions
|
@ -209,7 +209,7 @@ GEM
|
|||
guard-jshint-on-rails (0.0.2)
|
||||
guard (>= 1.0.0)
|
||||
jshint_on_rails (>= 1.0.2)
|
||||
guard-rspec (2.4.0)
|
||||
guard-rspec (2.5.1)
|
||||
guard (>= 1.1)
|
||||
rspec (~> 2.11)
|
||||
guard-spork (1.4.2)
|
||||
|
|
26
Guardfile
26
Guardfile
|
@ -1,13 +1,3 @@
|
|||
guard :spork, wait: 120 do
|
||||
watch('config/application.rb')
|
||||
watch('config/environment.rb')
|
||||
watch(%r{^config/environments/.*\.rb$})
|
||||
watch(%r{^config/initializers/.*\.rb$})
|
||||
watch('Gemfile')
|
||||
watch('Gemfile.lock')
|
||||
watch('spec/spec_helper.rb') { :rspec }
|
||||
end
|
||||
|
||||
phantom_path = File.expand_path('~/phantomjs/bin/phantomjs')
|
||||
phantom_path = nil unless File.exists?(phantom_path)
|
||||
|
||||
|
@ -36,7 +26,18 @@ guard 'jshint-on-rails', config_path: 'config/jshint.yml' do
|
|||
watch(%r{^spec/javascripts/.*\.js$})
|
||||
end
|
||||
|
||||
guard 'rspec', :focus_on_failed => true, :cli => "--drb" do
|
||||
unless ENV["USING_AUTOSPEC"]
|
||||
guard :spork, wait: 120 do
|
||||
watch('config/application.rb')
|
||||
watch('config/environment.rb')
|
||||
watch(%r{^config/environments/.*\.rb$})
|
||||
watch(%r{^config/initializers/.*\.rb$})
|
||||
watch('Gemfile')
|
||||
watch('Gemfile.lock')
|
||||
watch('spec/spec_helper.rb') { :rspec }
|
||||
end
|
||||
|
||||
guard 'rspec', :focus_on_failed => true, :cli => "--drb" do
|
||||
watch(%r{^spec/.+_spec\.rb$})
|
||||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/components/#{m[1]}_spec.rb" }
|
||||
watch('spec/spec_helper.rb') { "spec" }
|
||||
|
@ -50,10 +51,9 @@ guard 'rspec', :focus_on_failed => true, :cli => "--drb" do
|
|||
|
||||
# Capybara request specs
|
||||
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
module ::Guard
|
||||
class AutoReload < ::Guard::Guard
|
||||
|
||||
|
|
Loading…
Reference in a new issue