Skip to content

Instantly share code, notes, and snippets.

@mcfiredrill
Created April 10, 2012 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcfiredrill/2354403 to your computer and use it in GitHub Desktop.
Save mcfiredrill/2354403 to your computer and use it in GitHub Desktop.
undefined method `tempfile'
Using rake (0.9.2.2)
Using activesupport (3.0.10)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.10)
Using arel (2.0.10)
Using tzinfo (0.3.33)
Using activerecord (3.0.10)
Using aasm (3.0.4)
Using abstract (1.0.0)
Using erubis (2.6.6)
Using rack (1.2.5)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using actionpack (3.0.10)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.2.19)
Using actionmailer (3.0.10)
Using activeresource (3.0.10)
Using ansi (1.4.2)
Using bundler (1.1.3)
Using cocaine (0.2.1)
Using exception_notification (2.5.2)
Using factory_girl (3.1.0)
Using json (1.6.6)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.0.10)
Using factory_girl_rails (3.1.0)
Using jquery-rails (1.0.19)
Using minitest (2.12.0)
Using mysql2 (0.2.18)
Using net-ssh (2.3.0)
Using net-sftp (2.0.5)
Using newrelic_rpm (3.3.3)
Using paperclip (3.0.1)
Using progressbar (0.11.0)
Using rails (3.0.10)
Using rails3-jquery-autocomplete (1.0.6)
Using ruby-prof (0.10.8)
Using shoulda-context (1.0.0)
Using shoulda-matchers (1.0.0)
Using shoulda (3.0.1)
Using turn (0.9.4)
Using typed_serialize (1.0.0)
Using will_paginate (3.0.3)
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
FactoryGirl.define do
factory :thingy do |f|
f.csv { fixture_file_upload "/test.csv", "text/csv" }
end
end
ERROR test: a thingy should do stuff. (0:00:00.260)
undefined method `tempfile' for #<File:/tmp/test.csv20120410-12205-ldmfez>
@ /home/tony/.rvm/gems/ruby-1.9.3-p0/gems/rack-test-0.5.7/lib/rack/test/uploaded_file.rb:40:in `method_missing'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/paperclip-3.0.1/lib/paperclip/io_adapters/uploaded_file_adapter.rb:5:in `initialize'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/paperclip-3.0.1/lib/paperclip/io_adapters/registry.rb:29:in `new'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/paperclip-3.0.1/lib/paperclip/io_adapters/registry.rb:29:in `for'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/paperclip-3.0.1/lib/paperclip/attachment.rb:91:in `assign'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/paperclip-3.0.1/lib/paperclip.rb:193:in `block in has_attached_file'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-3.1.0/lib/factory_girl/attribute_assigner.rb:14:in `block (2 levels) in object'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-3.1.0/lib/factory_girl/attribute_assigner.rb:13:in `each'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-3.1.0/lib/factory_girl/attribute_assigner.rb:13:in `block in object'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-3.1.0/lib/factory_girl/attribute_assigner.rb:12:in `tap'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-3.1.0/lib/factory_girl/attribute_assigner.rb:12:in `object'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-3.1.0/lib/factory_girl/strategy/create.rb:9:in `result'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-3.1.0/lib/factory_girl/factory.rb:38:in `run'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-3.1.0/lib/factory_girl/factory_runner.rb:21:in `run'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-3.1.0/lib/factory_girl/syntax/methods.rb:63:in `create'
test/unit/thingy_test.rb:6:in `block (3 levels) in <class:ThingyTest>'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:398:in `call'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:398:in `block in create_test_from_should_hash'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:419:in `_run_setup_callbacks'
/home/tony/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
require 'test_helper'
class ThingyTest < ActiveSupport::TestCase
context "a thingy" do
should "do stuff" do
t = create(:thingy)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment