2010-12-14 55 views
0

我只是用黄瓜开始,但我遇到了一个奇怪的错误:黄瓜给SQLITE3错误

SQLite3::SQLException: no such table: venues: SELECT "venues".* FROM "venues" (ActiveRecord::StatementInvalid) 
./app/controllers/venues_controller.rb:5:in `index' 
<internal:prelude>:10:in `synchronize' 
./features/step_definitions/web_steps.rb:18:in `/^(?:|I)am on (.+)$/' 
features/most_popular_bands.feature:8:in `Given I am on the home page' 

这个来自Given步骤,在此我提的主页,其中有从项目列表场地表。我想知道为什么黄瓜不能找到那张桌子。

顺便说一句,我没有运行自动测试。我正在使用bundle exec cucumber

回答

0

我知道它与rake cucumber一起工作。

0

它看起来像你在老版本的数据库上执行你的功能。尝试rake db:test:clone将开发数据库的方案复制到测试数据库。