I'm running it using 'rake cucumber' but both ways give the same errors. However, that led me down the right path. I switched from using an in memory database for the cucumber environment to an sqlite3 file based database and now everything is looking great!
Thanks! -- Matt On Fri, Aug 19, 2011 at 3:47 PM, Reinier Balt <[email protected]> wrote: > Looks to me that your test database is incorrect. Try to create a new one > and manually migrate it. Also, are you running it using > > rake cucumber > > or > > RAILS_ENV=cucumber cucumber features/*.features > > Reinier > >> -----Oorspronkelijk bericht----- >> Van: [email protected] [mailto:tracks-discuss- >> [email protected]] Namens Matt Rogers >> Verzonden: vrijdag 19 augustus 2011 21:47 >> Aan: [email protected] >> Onderwerp: [Tracks-discuss] Tracks, bundler, and cucumber features >> >> Hi, >> >> I've set up rvm to use with tracks so that I have ruby 1.8.7 and have a >> development environment all set up now, so I thought I would start by >> running the tests. However, I could run the cucumber tests because the >> appropriate version of gherkin wouldn't compile on my system. >> >> So, I decided to be a bit adventurous and start porting Tracks to Bundler. > So >> far, things are going great with that, which one >> exception: There are several cucumber features that are failing. >> Should all the tracks features be passing when run through 'rake > cucumber'? >> I'm assuming yes, but I wanted to make sure. The error output I'm getting > for >> the failures is below. >> >> Any help would be appreciated. >> >> Thanks >> -- >> Matt >> >> >> (::) failed steps (::) >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/calendar.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/context_edit.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/context_list.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/create_admin.feature:7:in `Given the following user records' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/dependencies.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/edit_a_todo.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/feedlist.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/logging_in.feature:7:in `Given the following user records' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/manage_users.feature:7:in `Given the following user records' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/mobile_add_action.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/mobile_context_list.feature:7:in `Given the following user > record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/mobile_edit_a_todo.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/mobile_project_list.feature:7:in `Given the following user > record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/mobile_tagging_todos.feature:7:in `Given the following user >> record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/notes_manage.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/preferences.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/project_edit.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/project_list.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/recurring_todos.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/shared_add_new_todo.feature:7:in `Given the following user >> record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/show_integration_options.feature:7:in `Given the following user >> record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/show_statistics.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/tagging_todos.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/tickler.feature:7:in `Given the following user record' >> >> SQLite3::SQLException: no such table: users: DELETE FROM "users" >> WHERE 1=1 (ActiveRecord::StatementInvalid) >> ./features/step_definitions/user_steps.rb:2:in `/^the following user >> records?$/' >> features/view_done.feature:7:in `Given the following user record' >> >> Failing Scenarios: >> cucumber features/context_edit.feature:22 # Scenario: Editing the context >> of a todo will remove the todo cucumber features/context_list.feature:12 # >> Scenario: The list of contexts contain all contexts cucumber >> features/create_admin.feature:12 # Scenario: Successful signup cucumber >> features/dependencies.feature:95 # Scenario: Deleting a successor will >> update predecessor cucumber features/edit_a_todo.feature:156 # Scenario: >> I can edit a todo to move it to another context cucumber >> features/feedlist.feature:22 # Scenario: I cannot see context scripts when > I >> do not have a context cucumber features/logging_in.feature:12 # Scenario: >> Succesfull and unsuccesfull login cucumber >> features/manage_users.feature:13 # Scenario: Show all accounts cucumber >> features/mobile_add_action.feature:15 # Scenario: The new action form is >> prefilled with context and project cucumber >> features/mobile_context_list.feature:17 # Scenario: I can go to a context >> from the mobile context list page cucumber >> features/mobile_edit_a_todo.feature:17 # Scenario: I can edit an action on >> the mobile page cucumber features/mobile_project_list.feature:17 # >> Scenario: I can go to a project from the list of project in mobile view >> cucumber features/mobile_tagging_todos.feature:18 # Scenario: I can follow >> the tag of a action to see all actions belonging to that todo cucumber >> features/notes_manage.feature:12 # Scenario: View notes cucumber >> features/preferences.feature:12 # Scenario: I can change my password >> cucumber features/project_edit.feature:13 # Scenario: I can go to the note >> of a project cucumber features/project_list.feature:15 # Scenario: The > list of >> projects contain all projects cucumber features/recurring_todos.feature:65 > # >> Scenario: Following the recurring todo link of a todo takes me to the > recurring >> todos page cucumber features/shared_add_new_todo.feature:210 # >> Scenario: Adding a dependency to a todo updated the successor cucumber >> features/show_integration_options.feature:18 # Scenario: I cannot see >> scripts when I do not have a context cucumber >> features/show_statistics.feature:11 # Scenario: Show statistics with no >> history cucumber features/tagging_todos.feature:12 # Scenario: I can edit > a >> todo to add tags to that todo cucumber features/tickler.feature:54 # >> Scenario: Opening the tickler page shows me all deferred todos cucumber >> features/view_done.feature:15 # Scenario: Visit done overview page >> >> 143 scenarios (24 failed, 119 skipped) >> 1021 steps (25 failed, 996 skipped) >> 0m1.783s >> rake aborted! >> Command failed with status (1): [/home/matt/.rvm/rubies/ruby-1.8.7- >> p352/bin...] >> _______________________________________________ >> Tracks-discuss mailing list >> [email protected] >> http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss > > _______________________________________________ Tracks-discuss mailing list [email protected] http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
