Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProjectsControllerTest.test: As a signed in admin, destroy project with tasks should reject destroy action. #189

Closed
ari opened this issue Jun 27, 2011 · 2 comments

Comments

@ari
Copy link
Owner

ari commented Jun 27, 2011

Without looking at the code I guess this might be an issue with a fixture which is not creating a valid task for the unit test.

ProjectsControllerTest.test: As a signed in admin, destroy project with tasks should reject destroy action.
Failing for the past 1 build (Since Unstable#1261 )
Took 0.49 sec.
add description
Error Message

Validation failed: Task can't be blank

Stacktrace

Validation failed: Task can't be blank (ActiveRecord::RecordInvalid)
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.0.7/lib/active_record/validations.rb:49:in save!' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.0.7/lib/active_record/attribute_methods/dirty.rb:30:insave!'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.0.7/lib/active_record/transactions.rb:245:in block in save!' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.0.7/lib/active_record/transactions.rb:292:inblock in with_transaction_returning_status'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in transaction' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.0.7/lib/active_record/transactions.rb:207:intransaction'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.0.7/lib/active_record/transactions.rb:290:in with_transaction_returning_status' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.0.7/lib/active_record/transactions.rb:245:insave!'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/machinist-1.0.6/lib/machinist/active_record.rb:55:in make' /private/var/hudson/workspace/squish-development/build_ruby/1.9.2/test/functional/projects_controller_test.rb:60:inblock (3 levels) in class:ProjectsControllerTest'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in call' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:inblock in run_current_setup_blocks'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in each' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:inrun_current_setup_blocks'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in run_all_setup_blocks' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:inrun_parent_setup_blocks'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in block in create_test_from_should_hash' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/testing/setup_and_teardown.rb:67:inblock in run'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:449:in _run_setup_callbacks' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/testing/setup_and_teardown.rb:65:inrun'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit/testsuite.rb:53:in run' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit/testsuite.rb:53:inrun'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit/ui/testrunnermediator.rb:54:in run_suite' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit/ui/testrunner.rb:40:instart_mediator'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit/ui/testrunner.rb:25:in start' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit/ui/testrunnerutilities.rb:24:inrun'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit/autorunner.rb:356:in run' /Users/build/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit/autorunner.rb:58:inrun'
/Users/build/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit.rb:326:in `block in <top (required)>'

@ghost
Copy link

ghost commented Jun 28, 2011

All righty I'll take a look at this.

@ghost ghost self-assigned this Jun 28, 2011
@lenochka lenochka reopened this Jun 30, 2011
@ghost
Copy link

ghost commented Jun 30, 2011

Okie Dokie this one is fixed.

@ghost ghost closed this as completed Jun 30, 2011
vshete pushed a commit to webstream-io/jobsworth that referenced this issue Dec 23, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants