going through the michael hartl tutorial and all my tests were running fine then all of a sudden kept popping this error up - I tried looking around for people with similar problems but their solutions didn't help. I believe it might have something to do with the database migration. error below, let me know if i can provide anything that might help
bundle exec rake test --trace** Invoke test (first_time) ** Execute test ** Invoke test:run (first_time) ** Execute test:run rake aborted! test_account_activation is already defined in UserMailerTest /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/testing/declarative.rb:14:in test' /home/ubuntu/workspace/sample_app/test/mailers/user_mailer_test.rb:20:in
' /home/ubuntu/workspace/sample_app/test/mailers/user_mailer_test.rb:3:in <top (required)>' /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in
require' /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in block in require' /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in
load_dependency' /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in require' /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:114:in
block (3 levels) in define' /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:114:in each' /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:114:in
block (2 levels) in define' /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:113:in each' /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:113:in
block in define' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in call' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in
block in execute' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:in each' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:in
execute' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:179:in block in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/monitor.rb:211:in
mon_synchronize' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:172:in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:165:in
invoke' /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:20:in invoke_rake_task' /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/test_unit/testing.rake:8:in
block in ' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in call' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:240:in
block in execute' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:in each' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:235:in
execute' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:179:in block in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/monitor.rb:211:in
mon_synchronize' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:172:in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/task.rb:165:in
invoke' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:150:in invoke_task' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in
block (2 levels) in top_level' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in each' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in
block in top_level' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:115:in run_with_threads' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:100:in
top_level' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:78:in block in run' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in
standard_exception_handling' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:75:in run' /usr/local/rvm/rubies/ruby-2.2.1/bin/rake:33:in
' Tasks: TOP => test:run
Aucun commentaire:
Enregistrer un commentaire