Cucumber给出了Sqlite3错误

Cucumber给出了Sqlite3错误,cucumber,bdd,ruby-on-rails-3,Cucumber,Bdd,Ruby On Rails 3,我刚开始使用Cucumber,但我遇到了一个奇怪的错误: 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/st

我刚开始使用Cucumber,但我遇到了一个奇怪的错误:

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'
SQLite3::SQLException:没有这样的表:场馆:从“场馆”(ActiveRecord::StatementInvalid)中选择“场馆”。*
/app/controllers/victions\u controller.rb:5:in'index'
:10:在“同步”中
/features/step_definitions/web_steps.rb:18:in`/^(?:| I)am on(+)$/'
功能/最受欢迎的乐队。功能:8:在“给定我在主页上”
这来自于
Given
步骤,其中我提到了主页,其中有来自场馆表的项目列表。我想知道为什么Cucumber找不到那张桌子


顺便说一句,我不是用自动测试运行它。我正在使用
bundle exec cumber

我用
rake cumber
实现了它

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