Skip to content

Commit

Permalink
Use the same :cli guard setup that we're using in Refinery's rGuardfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Apr 4, 2012
1 parent 5574927 commit 4d694d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/generators/refinery/engine/templates/Guardfile
Expand Up @@ -8,7 +8,7 @@ guard 'spork', :wait => 60, :cucumber => false, :rspec_env => { 'RAILS_ENV' => '
watch(%r{^vendor/extensions/(.+)/spec/support/.+\.rb$})
end

guard 'rspec', :version => 2, :cli => "--color --drb", :all_on_start => false, :all_after_pass => false do
guard 'rspec', :version => 2, :cli => (['~/.rspec', '.rspec'].map{|f| File.read(File.expand_path(f)).split("\n").join(' ') if File.exists?(File.expand_path(f))}.join(' ')) do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
Expand Down

0 comments on commit 4d694d1

Please sign in to comment.