This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Paperclip | |
# We don't need to be testing that thumbnails are created | |
class Attachment | |
private | |
def post_process_styles | |
true | |
end | |
end | |
class Geometry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_sets_settings_with_hash | |
user = User.create :name => 'Mr. Foo' | |
user.settings[:one] = 1 | |
user.settings[:two] = 2 | |
user.settings = { :two => 'two', :three => 3 } | |
assert_equal 1, user.settings[:one] | |
assert_equal 'two', user.settings[:two] | |
assert_equal 3, user.settings[:three] # ensure existing settings remain intact | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tempfile' | |
require 'net/ntlm' | |
require 'kconv' | |
require 'webrobots' | |
## | |
# An HTTP (and local disk access) user agent. This class is an implementation | |
# detail and is subject to change at any time. | |
class Mechanize::HTTP::Agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A sample Gemfile | |
source "https://rubygems.org" | |
gem 'rails', '3.2.12' | |
gem 'sqlite3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Activate the gem you are reporting the issue against. | |
# gem 'activerecord', '3.2.18' | |
gem 'activerecord', '4.0.5' | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
# Ensure backward compatibility with Minitest 4 | |
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) |