Skip to content

Commit

Permalink
Merge pull request refinery#1423 from resolve/guardfile_reads_from_us…
Browse files Browse the repository at this point in the history
…er_dot_rspec

Read from both the user's .rspec file and the one inside the directory.
  • Loading branch information
robyurkowski committed Mar 8, 2012
2 parents 8ea418d + c1cb553 commit 48a24de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ guard 'spork', :wait => 60, :cucumber => false, :rspec_env => { 'RAILS_ENV' => '
end

guard 'rspec', :version => 2, :spec_paths => extensions.map{|e| "#{e}/spec"},
:cli => (File.read('.rspec').split("\n").join(' ') if File.exists?('.rspec')) do
:cli => (['~/.rspec', '.rspec'].map{|f| File.read(File.expand_path(f)).split("\n").join(' ') if File.exists?(File.expand_path(f))}.join(' ')) do
extensions.each do |extension|
watch(%r{^#{extension}/spec/.+_spec\.rb$})
watch(%r{^#{extension}/app/(.+)\.rb$}) { |m| "#{extension}/spec/#{m[1]}_spec.rb" }
Expand Down

0 comments on commit 48a24de

Please sign in to comment.