Sha256: 3bd53ed88ed3226bb80ffbcd365c59b52ec937363af4c09bf5a9c2b6a3cf1da4

Contents?: true

Size: 580 Bytes

Versions: 9

Compression:

Stored size: 580 Bytes

Contents

export RAILS_ENV=test

# RUN FOR SQLITE

cp config/database.sqlite.yml config/database.yml

rm db/test.sqlite3
spring rake db:schema:load

export SQLITE_SUCCESS=0

DBADAPTER=sqlite bundle exec rspec spec && export SQLITE_SUCCESS=1

#RUN FOR MYSQL
cp config/database.local.yml config/database.yml

mysqladmin -f drop newsletter_test
mysqladmin -f create newsletter_test
spring rake db:schema:load

export MYSQL_SUCCESS=0

DBADAPTER=mysql bundle exec rspec spec && export MYSQL_SUCCESS=1

if [ $MYSQL_SUCCESS -eq 0 ] ; then exit 1; fi
if [ $SQLITE_SUCCESS -eq 0 ] ; then exit 1; fi

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
newsletter-3.2.25.1 spec/test_app/script/rspec_multi_db
newsletter-3.2.22.0 spec/test_app/script/rspec_multi_db
newsletter-3.2.7 spec/test_app/script/rspec_multi_db
newsletter-3.2.6 spec/test_app/script/rspec_multi_db
newsletter-3.2.5 spec/test_app/script/rspec_multi_db
newsletter-3.2.4 spec/test_app/script/rspec_multi_db
newsletter-3.2.2 spec/test_app/script/rspec_multi_db
newsletter-3.2.1 spec/test_app/script/rspec_multi_db
newsletter-3.2.0 spec/test_app/script/rspec_multi_db