From f821b201a017e54c215ac506a5668c286b640762 Mon Sep 17 00:00:00 2001 From: Franklin Webber Date: Sat, 8 Oct 2011 23:16:46 -0700 Subject: [PATCH] Rake and `bundle exec rake` Updated the rake file to use `bundle exec rspec` Added the comment to the readme about possibly having to use bundle exec rake Updated the Gemfile and Gemfile.lock to include rake --- Gemfile | 1 + Gemfile.lock | 2 ++ README.md | 2 ++ Rakefile | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index d5503b6..222dd72 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,6 @@ source :rubygems +gem 'rake' gem 'rspec' gem 'guard' gem 'guard-rspec' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 9532d05..4b3eda0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -6,6 +6,7 @@ GEM thor (~> 0.14.6) guard-rspec (0.4.0) guard (>= 0.4.0) + rake (0.9.2) rspec (2.6.0) rspec-core (~> 2.6.0) rspec-expectations (~> 2.6.0) @@ -22,4 +23,5 @@ PLATFORMS DEPENDENCIES guard guard-rspec + rake rspec diff --git a/README.md b/README.md index c6be71c..0e039ab 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,8 @@ Executing `bundle ` will take care of installing all the remaining gems that thi The tests for this project are written in a Ruby test library named [RSpec](https://www.relishapp.com/rspec). rake + +NOTE: If rake fails to work you may have to execute the command: `bundle exec rake` ### 4. Setup a guard diff --git a/Rakefile b/Rakefile index eb7540e..e820aa0 100644 --- a/Rakefile +++ b/Rakefile @@ -2,5 +2,5 @@ task :default => :spec task :spec do - system "rspec -c spec/*_spec.rb" + system "bundle exec rspec -c spec/*_spec.rb" end \ No newline at end of file