Fix typo and change travis config and ruby version

This commit is contained in:
benji 2015-09-04 17:28:15 +02:00
parent ebbc8ce471
commit c6ce9886de
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,7 @@
sudo: false
language: ruby
rvm:
- 2.1.0
- 2.2.0
before_script:
- "RAILS_ENV=test bundle exec rake db:create"
@ -13,6 +14,6 @@ notifications:
email:
recipients:
- tab@zeus.ugent.be
- tap@zeus.ugent.be
on_success: never
on_failure: change

View file

@ -41,7 +41,7 @@ describe Order do
end
it 'should cancel the orderitems' do
expect(@order.order_items.frst).to receive(:cancel)
expect(@order.order_items.first).to receive(:cancel)
@order.cancel
end
end