generators/rspec/templates/rspec.rake in dchelimsky-rspec-rails-1.1.99.9 vs generators/rspec/templates/rspec.rake in dchelimsky-rspec-rails-1.1.99.13

- old
+ new

@@ -110,15 +110,17 @@ ::STATS_DIRECTORIES << %w(Model\ specs spec/models) if File.exist?('spec/models') ::STATS_DIRECTORIES << %w(View\ specs spec/views) if File.exist?('spec/views') ::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers) if File.exist?('spec/controllers') ::STATS_DIRECTORIES << %w(Helper\ specs spec/helpers) if File.exist?('spec/helpers') ::STATS_DIRECTORIES << %w(Library\ specs spec/lib) if File.exist?('spec/lib') + ::STATS_DIRECTORIES << %w(Routing\ specs spec/lib) if File.exist?('spec/routing') ::CodeStatistics::TEST_TYPES << "Model specs" if File.exist?('spec/models') ::CodeStatistics::TEST_TYPES << "View specs" if File.exist?('spec/views') ::CodeStatistics::TEST_TYPES << "Controller specs" if File.exist?('spec/controllers') ::CodeStatistics::TEST_TYPES << "Helper specs" if File.exist?('spec/helpers') ::CodeStatistics::TEST_TYPES << "Library specs" if File.exist?('spec/lib') + ::CodeStatistics::TEST_TYPES << "Routing specs" if File.exist?('spec/routing') ::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/} end namespace :db do namespace :fixtures do @@ -134,18 +136,18 @@ end end end namespace :server do - daemonized_server_pid = File.expand_path("#{RAILS_ROOT}/tmp/spec_server.pid") + daemonized_server_pid = File.expand_path("#{RAILS_ROOT}/tmp/pids/spec_server.pid") desc "start spec_server." task :start do if File.exist?(daemonized_server_pid) $stderr.puts "spec_server is already running." else $stderr.puts %Q{Starting up spec_server ...} - FileUtils.mkdir('tmp') unless test ?d, 'tmp' + FileUtils.mkdir_p('tmp/pids') unless test ?d, 'tmp/pids' system("ruby", "script/spec_server", "--daemon", "--pid", daemonized_server_pid) end end desc "stop spec_server." \ No newline at end of file