From c992c4a456c88cbf4b66b774ee962d3e1fc1b32e Mon Sep 17 00:00:00 2001 From: Lyuben Petrov Date: Thu, 23 Jan 2014 16:20:38 +0100 Subject: [PATCH 1/2] rspec setup --- install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f66722d..e84d01b 100644 --- a/install.sh +++ b/install.sh @@ -9,8 +9,17 @@ fi #TODO: quit if no: rails, git, bundle, heroku lowercaseprojectname=`echo $projectname | awk '{print tolower($0)}'` -rails new $projectname +rails new $projectname -T --skip-bundle cd $projectname + +cat <>Gemfile +group :development do + gem 'rspec-rails' +end +EOF + +bundle install +rails g rspec:install git init heroku create $lowercaseprojectname git add . From f602d9b9f3d6c1a626d91a5fe7942ec8f7cb9162 Mon Sep 17 00:00:00 2001 From: Lyuben Petrov Date: Fri, 24 Jan 2014 00:08:27 +0100 Subject: [PATCH 2/2] rspec-rails should be added by the rake task --- install.sh | 12 ++---------- lib/Gemfile | 1 + 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index e84d01b..655bccc 100644 --- a/install.sh +++ b/install.sh @@ -11,15 +11,6 @@ fi lowercaseprojectname=`echo $projectname | awk '{print tolower($0)}'` rails new $projectname -T --skip-bundle cd $projectname - -cat <>Gemfile -group :development do - gem 'rspec-rails' -end -EOF - -bundle install -rails g rspec:install git init heroku create $lowercaseprojectname git add . @@ -28,7 +19,8 @@ echo "gem 'johnhenry'" >> Gemfile bundle bundle exec rake john_henry:install bundle -git add app config Gemfile* +rails g rspec:install +git add app config Gemfile* spec git rm app/views/layouts/application.html.erb git commit -m 'Install JohnHenryRails' bundle exec rake john_henry:install:migrations diff --git a/lib/Gemfile b/lib/Gemfile index 68f7983..4bb09b3 100644 --- a/lib/Gemfile +++ b/lib/Gemfile @@ -16,5 +16,6 @@ group :development, :test do gem 'sqlite3' gem 'pry-rails' gem 'email_preview' + gem 'rspec-rails' end # END autogenerated by JohnHenryRails