Skip to content

Commit

Permalink
test bin/calagator and rails g calagator:install by using it to gener…
Browse files Browse the repository at this point in the history
…ate spec/dummy app before tests.
  • Loading branch information
botandrose-machine committed Mar 4, 2015
1 parent f15ab6c commit 8045849
Show file tree
Hide file tree
Showing 66 changed files with 13 additions and 3,172 deletions.
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ vagrant/cookbooks/vagrant/recipes/local.rb
.ruby-version
.bundle/
pkg/
spec/dummy/db/*.sqlite3
spec/dummy/log/*
spec/dummy/solr/*
spec/dummy/tmp/
spec/dummy/.sass-cache
spec/dummy
.sass-cache
.DS_Store
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ before_install:
- ruby ci/copy_database_config.rb

before_script:
- bin/calagator new spec/dummy
- mysql -e 'create database calagator_test;'
- psql -c 'create database calagator_test;' -U postgres
- bundle exec rake db:migrate
Expand Down
7 changes: 7 additions & 0 deletions bin/calagator
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
CALAGATOR_PATH=$(pwd)
rails new $2 --skip-bundle
cd $2
echo "gem 'calagator', path: '$CALAGATOR_PATH'" >> Gemfile
bundle
rails g calagator:install
261 changes: 0 additions & 261 deletions spec/dummy/README.rdoc

This file was deleted.

7 changes: 0 additions & 7 deletions spec/dummy/Rakefile

This file was deleted.

3 changes: 0 additions & 3 deletions spec/dummy/app/controllers/application_controller.rb

This file was deleted.

2 changes: 0 additions & 2 deletions spec/dummy/app/helpers/application_helper.rb

This file was deleted.

Empty file removed spec/dummy/app/mailers/.gitkeep
Empty file.
Empty file removed spec/dummy/app/models/.gitkeep
Empty file.
4 changes: 0 additions & 4 deletions spec/dummy/config.ru

This file was deleted.

Loading

0 comments on commit 8045849

Please sign in to comment.