mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:27:16 +08:00
formatted some tests
- formatted the bbcode_spec - added 3 tests regarding the quotes - corrected a test label in the smoke test - cleaned up a bit the Guardfile
This commit is contained in:
16
Guardfile
16
Guardfile
@ -8,7 +8,7 @@ guard :spork, wait: 120 do
|
||||
watch('spec/spec_helper.rb') { :rspec }
|
||||
end
|
||||
|
||||
phantom_path = File.expand_path('~/phantomjs/bin/phantomjs')
|
||||
phantom_path = File.expand_path('~/phantomjs/bin/phantomjs')
|
||||
phantom_path = nil unless File.exists?(phantom_path)
|
||||
|
||||
jasmine_options = {:phantomjs_bin => phantom_path}
|
||||
@ -22,7 +22,8 @@ else
|
||||
jasmine_options[:server_timeout] = 300
|
||||
end
|
||||
|
||||
guard 'jasmine', jasmine_options do watch(%r{spec/javascripts/spec\.js$}) { "spec/javascripts" }
|
||||
guard 'jasmine', jasmine_options do
|
||||
watch(%r{spec/javascripts/spec\.js$}) { "spec/javascripts" }
|
||||
watch(%r{spec/javascripts/.+_spec\.js$})
|
||||
watch(%r{app/assets/javascripts/(.+?)\.js$}) { "spec/javascripts" }
|
||||
end
|
||||
@ -37,8 +38,7 @@ end
|
||||
|
||||
guard 'rspec', :focus_on_failed => true, :cli => "--drb" do
|
||||
watch(%r{^spec/.+_spec\.rb$})
|
||||
#watch(%r{^lib/jobs/(.+)\.rb$}) { |m| "spec/components/jobs/#{m[1]}_spec.rb" }
|
||||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/components/#{m[1]}_spec.rb" }
|
||||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/components/#{m[1]}_spec.rb" }
|
||||
watch('spec/spec_helper.rb') { "spec" }
|
||||
|
||||
# Rails example
|
||||
@ -47,10 +47,10 @@ guard 'rspec', :focus_on_failed => true, :cli => "--drb" do
|
||||
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb" }
|
||||
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
||||
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
|
||||
|
||||
|
||||
@ -86,7 +86,7 @@ Thread.new do
|
||||
end
|
||||
end
|
||||
|
||||
guard :autoreload do
|
||||
guard :autoreload do
|
||||
watch(/tmp\/refresh_browser/)
|
||||
watch(/\.css$/)
|
||||
watch(/\.sass$/)
|
||||
@ -94,5 +94,3 @@ guard :autoreload do
|
||||
watch(/\.sass\.erb$/)
|
||||
watch(/\.handlebars$/)
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user