Skip to content

Instantly share code, notes, and snippets.

@sbeam
Created September 30, 2011 01:19
Show Gist options
  • Select an option

  • Save sbeam/1252415 to your computer and use it in GitHub Desktop.

Select an option

Save sbeam/1252415 to your computer and use it in GitHub Desktop.
Access Paperclip matchers in your Shoulda tests
# In test_helper.rb add (inside Spork.prefork block)
require "paperclip/matchers"
# ...
class Test::Unit::TestCase
extend Paperclip::Shoulda::Matchers
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment