Skip to content

Instantly share code, notes, and snippets.

@parndt
Created November 15, 2010 23:18
Show Gist options
  • Save parndt/701161 to your computer and use it in GitHub Desktop.
Save parndt/701161 to your computer and use it in GitHub Desktop.
When running Dragonfly's features using rails 3.0.2 specified in the Gemfile.
*** RUNNING FEATURES IN THE RAILS APP... ***
Using the default profile...
..F----
(::) failed steps (::)
Dragonfly::TempObject must be initialized with a String, a File, a Tempfile, or another TempObject (ArgumentError)
/code/dragonfly/lib/dragonfly/temp_object.rb:179:in `initialize_from_object!'
/code/dragonfly/lib/dragonfly/temp_object.rb:45:in `initialize'
/code/dragonfly/lib/dragonfly/app.rb:87:in `new'
/code/dragonfly/lib/dragonfly/app.rb:87:in `new_job'
/code/dragonfly/lib/dragonfly/active_model_extensions/attachment.rb:31:in `assign'
/code/dragonfly/lib/dragonfly/active_model_extensions/class_methods.rb:22:in `cover_image='
./app/controllers/albums_controller.rb:43:in `new'
./app/controllers/albums_controller.rb:43:in `create'
/code/dragonfly/lib/dragonfly/middleware.rb:16:in `call'
./features/step_definitions/web_steps.rb:29
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_album_images.feature:8:in `And I press "Create"'
Failing Scenarios:
cucumber features/manage_album_images.feature:5 # Scenario: Add and view image
1 scenario (1 failed)
7 steps (1 failed, 4 skipped, 2 passed)
0m0.172s
*** FINISHED RUNNING FEATURES IN THE RAILS APP ***
Then the manage_album_images cucumber features in my Rails 3.0.0 app should pass # features/steps/rails_steps.rb:32
Features failed (RuntimeError)
./features/steps/rails_steps.rb:38:in `/^the (.+) cucumber features in my Rails (.+) app should pass$/'
features/rails_3.0.0.feature:7:in `Then the manage_album_images cucumber features in my Rails 3.0.0 app should pass'
And the text_images cucumber features in my Rails 3.0.0 app should pass # features/steps/rails_steps.rb:32
Failing Scenarios:
cucumber features/rails_3.0.0.feature:5 # Scenario: Set up dragonfly using initializer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment