Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 29 additions and 6 deletions.
  1. +13 −6 README.md
  2. +16 −0 rspec.rake
View
19 README.md
@@ -8,15 +8,22 @@ deploy.rake
These tasks make deploying to Heroku easier:
- rake deploy # Alias for deploy:staging
- rake deploy:staging # Push master to staging remote, plus migrate
- rake deploy:production # Push master to production remote, plus migrate
+ rake deploy # Alias for deploy:staging
+ rake deploy:staging # Push master to staging remote, plus migrate
+ rake deploy:production # Push master to production remote, plus migrate
pg\_sync.rake
-------------
These tasks make moving data around Heroku apps easier. If you use Postgres locally, you can use them to even pull down data locally.
- rake pg_sync:production_to_local # Capture a backup of production and restore to your local database
- rake pg_sync:production_to_staging # Capture a backup of production and restore to your staging database
- rake pg_sync:staging_to_local # Capture a backup of staging and restore to your local database
+ rake pg_sync:production_to_local # Capture a backup of production and restore to your local database
+ rake pg_sync:production_to_staging # Capture a backup of production and restore to your staging database
+ rake pg_sync:staging_to_local # Capture a backup of staging and restore to your local database
+
+rspec.rake
+----------
+
+Since installing Rspec doesn't make you a nice Rake task like Cucumber does, I've been carrying this task around on projects. All it does is run all your specs:
+
+ rake spec # Run all specs
View
16 rspec.rake
@@ -0,0 +1,16 @@
+begin
+ require 'rspec'
+
+ Rake.application.instance_variable_get("@tasks").delete("spec")
+
+ require 'rspec/core/rake_task'
+ desc "Run all specs"
+ RSpec::Core::RakeTask.new(:spec => 'db:test:prepare') do |t|
+ t.rspec_opts = ['--format progress']
+ end
+rescue LoadError
+ desc 'rspec rake task not available (rspec not installed)'
+ task :spec do
+ abort 'Rspec rake task is not available. Be sure to install rspec as a gem or plugin'
+ end
+end

No commit comments for this range

Something went wrong with that request. Please try again.