Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

HELP!

Sorry for posting so much output in this question but after running the bin/rake command after the Adding State lesson in the Advanced Social Features in Ruby on Rails course I get 13 error on the second test that seem to all be very closely related, yet I cannot pinpoint the mistake. It would be very much appreciated I anyone could help out. Below is my output:

Jobe-Mac:studygroup realscience$ bin/rake Rack::File headers parameter replaces cache_control after Rack 1.5. Run options:

Running tests:

..............................

Finished tests in 0.913336s, 32.8466 tests/s, 43.7955 assertions/s.

30 tests, 40 assertions, 0 failures, 0 errors, 0 skips Rack::File headers parameter replaces cache_control after Rack 1.5. Run options:

Running tests:

.................EEE..........EE.EEE.EEEEE.........

Finished tests in 1.121800s, 45.4626 tests/s, 54.3769 assertions/s.

1) Error: test: #accept when logged in should assign a user_friendship. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:156:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

2) Error: test: #accept when logged in should have a flash success message. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:156:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

3) Error: test: #accept when logged in should update the state to accepted. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:156:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

4) Error: test: #destroy when logged in should delete user friendships. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:210:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

5) Error: test: #destroy when logged in should set the flash. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:210:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

6) Error: test: #edit when logged in should assign to friend. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:5:in association' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluator.rb:31:inassociation' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute/association.rb:19:in block in to_proc' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluator.rb:71:ininstance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluator.rb:71:in block in define_attribute' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:56:inget' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:16:in block (2 levels) in object' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:15:ineach' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:15:in block in object' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:14:intap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:14:in object' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:12:inobject' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:in block in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:ininstrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:inblock in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:184:in block (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:ininstance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in block in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:ineach' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:inblock in create_test_from_should_hash'

7) Error: test: #edit when logged in should assign to user_friendship. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:5:in association' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluator.rb:31:inassociation' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute/association.rb:19:in block in to_proc' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluator.rb:71:ininstance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluator.rb:71:in block in define_attribute' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:56:inget' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:16:in block (2 levels) in object' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:15:ineach' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:15:in block in object' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:14:intap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:14:in object' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:12:inobject' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:in block in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:ininstrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:inblock in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:184:in block (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:ininstance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in block in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:ineach' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:inblock in create_test_from_should_hash'

8) Error: test: #edit when logged in should get edit and and return success. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:5:in association' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluator.rb:31:inassociation' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute/association.rb:19:in block in to_proc' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluator.rb:71:ininstance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluator.rb:71:in block in define_attribute' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:56:inget' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:16:in block (2 levels) in object' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:15:ineach' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:15:in block in object' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:14:intap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/attribute_assigner.rb:14:in object' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:12:inobject' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:in block in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:ininstrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:inblock in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:184:in block (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:ininstance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in block in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:ineach' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:inblock in create_test_from_should_hash'

9) Error: test: #index when logged in should assign user_friendships. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:13:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

10) Error: test: #index when logged in should display date information on an accepted friendship. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:13:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

11) Error: test: #index when logged in should display friend's name. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:13:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

12) Error: test: #index when logged in should display pending information on pending friendship. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:13:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

13) Error: test: #index when logged in should get the index page without error. (UserFriendshipsControllerTest): ActiveRecord::RecordInvalid: Validation failed: Profile name Must be formatted correctly. /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in block in save!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:intransaction' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in with_transaction_returning_status' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:insave!' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/configuration.rb:14:in block in initialize' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in[]' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/evaluation.rb:15:in create' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:12:inblock in result' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:in tap' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy/create.rb:9:inresult' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory.rb:42:in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:23:inblock in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/notifications.rb:125:in instrument' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/factory_runner.rb:22:inrun' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/factory_girl-4.3.0/lib/factory_girl/strategy_syntax_method_registrar.rb:20:in block in define_singular_strategy_method' /Users/realscience/Documents/Web_Programming/studygroup_app/studygroup/test/functional/user_friendships_controller_test.rb:13:inblock (3 levels) in <class:UserFriendshipsControllerTest>' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:in instance_exec' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:436:inblock in run_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:in each' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:434:inrun_current_setup_blocks' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'

51 tests, 61 assertions, 0 failures, 13 errors, 0 skips Rack::File headers parameter replaces cache_control after Rack 1.5. Run options:

Running tests:

.....

Finished tests in 0.696039s, 7.1835 tests/s, 12.9303 assertions/s.

5 tests, 9 assertions, 0 failures, 0 errors, 0 skips Errors running test:functionals! #<RuntimeError: Command failed with status (13): [ruby -I"lib:test" -I"/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/lib" "/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" "test/functional/**/*_test.rb" ]> Jobe-Mac:studygroup realscience$

4 Answers

Hi Arthur,

I cannot tell the exact problem thats causing the failure without seeing your ruby files, could you post a link to your git repo?

Most of the tests we run we expect to fail so that we can then implement the code to make it pass. My advice would be to go to the part in the video where we write the test, watch the test fail and then follow it carefully until Jason makes it pass. This will most likely be where you are making a syntax error.

I hope you find a solution soon, otherwise we will do our best to help.

Hello John, thank you so much for writing back. I have went through the videos several time and just can't seem to spot what I am doing wrong. My code can be found on git hub at: https://github.com/ArthurMiller/studygroup

Hi again Arthur,

You have a syntax error on line 35 of test/functional/user_friendships_controller_test.rb

assert_select "em", "Friendship started #{@friendship2.updtaed_at}."

Should be

assert_select "em", "Friendship started #{@friendship2.updated_at}."

That should fix the first error you are getting.

Thank you so much, that is a tremendous help... I need to really watch those mistakes as there are apparently a lot; after correcting that one there were still 13 errors, but I have some direction now.