Ran migrations, migrate, prepare the test db on travis, use rspec

This commit is contained in:
Henne Vogelsang 2014-04-09 18:21:32 +02:00
parent 03d42cfaad
commit 25f24c1410
2 changed files with 10 additions and 5 deletions

View file

@ -8,8 +8,12 @@ notifications:
email: email:
on_success: change on_success: change
on_failure: change on_failure: change
before_install: script:
- "cp config/database.yml.example config/database.yml" - "cp config/database.yml.example config/database.yml"
- "cp config/config.yml.example config/config.yml" - "cp config/config.yml.example config/config.yml"
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake db:test:prepare
- bundle exec rake spec
before_install:
- "export DISPLAY=:99.0" - "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start" - "sh -e /etc/init.d/xvfb start"

View file

@ -11,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20140319143547) do ActiveRecord::Schema.define(:version => 20140401094729) do
create_table "answers", :force => true do |t| create_table "answers", :force => true do |t|
t.string "title" t.string "title"
@ -30,6 +30,7 @@ ActiveRecord::Schema.define(:version => 20140319143547) do
t.boolean "schedule_changes", :default => false t.boolean "schedule_changes", :default => false
t.integer "rating", :default => 3 t.integer "rating", :default => 3
t.text "rating_desc" t.text "rating_desc"
t.boolean "schedule_public"
end end
create_table "comments", :force => true do |t| create_table "comments", :force => true do |t|