Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

Testing the statuses controller

I have a problem passing this lesson. I've done (I think so) everything correct but I don't see where is the problem. Thank's for help! jure@Jure-PC:~/projects/treebook$ ruby -Itest test/functional/statuses_controller_test.rb Run options:

Running tests:

EEEEEEEE

Finished tests in 0.187423s, 42.6841 tests/s, 0.0000 assertions/s.

1) Error: test_should_be_redirected_when_not_logged_in(StatusesControllerTest): ActiveRecord::StatementInvalid: Could not find table 'users' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in table_structure' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:346:incolumns' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:660:in column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:652:intimestamp_column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:585:in block in table_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:in map' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:intable_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:494:in block (3 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:in block (2 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:491:in block in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:168:indisable_referential_integrity' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:476:in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:895:inload_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:849:in setup_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:429:inrun4386733341067863740setup4059869952880884065callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run_callback' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in _run_setup_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:inrun_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:35:in `run'

2) Error: test_should_create_status(StatusesControllerTest): ActiveRecord::StatementInvalid: Could not find table 'users' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in table_structure' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:346:incolumns' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:660:in column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:652:intimestamp_column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:585:in block in table_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:in map' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:intable_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:494:in block (3 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:in block (2 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:491:in block in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:168:indisable_referential_integrity' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:476:in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:895:inload_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:849:in setup_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:429:inrun4386733341067863740setup4059869952880884065callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run_callback' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in _run_setup_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:inrun_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:35:in `run'

3) Error: test_should_destroy_status(StatusesControllerTest): ActiveRecord::StatementInvalid: Could not find table 'users' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in table_structure' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:346:incolumns' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:660:in column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:652:intimestamp_column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:585:in block in table_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:in map' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:intable_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:494:in block (3 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:in block (2 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:491:in block in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:168:indisable_referential_integrity' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:476:in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:895:inload_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:849:in setup_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:429:inrun4386733341067863740setup4059869952880884065callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run_callback' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in _run_setup_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:inrun_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:35:in `run'

4) Error: test_should_get_edit(StatusesControllerTest): ActiveRecord::StatementInvalid: Could not find table 'users' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in table_structure' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:346:incolumns' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:660:in column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:652:intimestamp_column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:585:in block in table_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:in map' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:intable_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:494:in block (3 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:in block (2 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:491:in block in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:168:indisable_referential_integrity' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:476:in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:895:inload_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:849:in setup_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:429:inrun4386733341067863740setup4059869952880884065callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run_callback' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in _run_setup_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:inrun_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:35:in `run'

5) Error: test_should_get_index(StatusesControllerTest): ActiveRecord::StatementInvalid: Could not find table 'users' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in table_structure' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:346:incolumns' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:660:in column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:652:intimestamp_column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:585:in block in table_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:in map' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:intable_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:494:in block (3 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:in block (2 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:491:in block in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:168:indisable_referential_integrity' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:476:in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:895:inload_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:849:in setup_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:429:inrun4386733341067863740setup4059869952880884065callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run_callback' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in _run_setup_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:inrun_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:35:in `run'

6) Error: test_should_render_the_new_page_when_logged_in(StatusesControllerTest): ActiveRecord::StatementInvalid: Could not find table 'users' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in table_structure' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:346:incolumns' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:660:in column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:652:intimestamp_column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:585:in block in table_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:in map' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:intable_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:494:in block (3 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:in block (2 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:491:in block in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:168:indisable_referential_integrity' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:476:in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:895:inload_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:849:in setup_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:429:inrun4386733341067863740setup4059869952880884065callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run_callback' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in _run_setup_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:inrun_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:35:in `run'

7) Error: test_should_show_status(StatusesControllerTest): ActiveRecord::StatementInvalid: Could not find table 'users' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in table_structure' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:346:incolumns' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:660:in column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:652:intimestamp_column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:585:in block in table_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:in map' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:intable_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:494:in block (3 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:in block (2 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:491:in block in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:168:indisable_referential_integrity' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:476:in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:895:inload_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:849:in setup_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:429:inrun4386733341067863740setup4059869952880884065callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run_callback' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in _run_setup_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:inrun_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:35:in `run'

8) Error: test_should_update_status(StatusesControllerTest): ActiveRecord::StatementInvalid: Could not find table 'users' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in table_structure' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/sqlite_adapter.rb:346:incolumns' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:660:in column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:652:intimestamp_column_names' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:585:in block in table_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:in map' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:579:intable_rows' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:494:in block (3 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:ineach' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:492:in block (2 levels) in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:491:in block in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:168:indisable_referential_integrity' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:476:in create_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:895:inload_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.14/lib/active_record/fixtures.rb:849:in setup_fixtures' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:429:inrun4386733341067863740setup4059869952880884065callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run_callback' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in _run_setup_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:inrun_callbacks' /home/jure/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:35:in `run'

8 tests, 0 assertions, 0 failures, 8 errors, 0 skips

1 Answer

Robert Ho
PLUS
Robert Ho
Courses Plus Student 11,383 Points

Hello

under your statuses.yml file in the fixtures folder, do you have:

one: content: MyText user: jason

two: content: MyText user: jason

??