Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 2, 2013
  1. Make sure the methods in our fake match the user's version of Net::HTTP

    authored
    Specifically, this ensures that we won't add #continue_timeout= to rubies
    that don't have it -- it was added to Net::HTTP in 1.9.3.
  2. Merge pull requests #28 (syborg) and #38 (trevorrowe)

    authored
    This adds the timeout methods from Net::HTTP's socket proxy (Net::BufferedIO)
    missing from our fake (StubSocket), fixing that Net::HTTP#read_timeout= and
    Net::HTTP#continue_timeout= would raise NoMethodErrors when called after a
    Net::HTTP object has handled a first fake request (i.e. after StubSocket has
    been injected).
  3. Let original method process its arguments so we don't have to keep up…

    authored
    … with changes
    
    For example, there's now a @continue_timeout that we haven't been setting.
  4. Raise a more appropriate exception when given an unknown response object

    authored
    The change in responder.rb should be backwards-compatible (although it seems
    unlikely that anyone's depending on it) because ArgumentError < StandardError.
    The change in net_http.rb won't affect anyone because it's an internal sanity
    check -- the guard in responder.rb catches everything first.
    
    Also, a little related cleanup and test coverage.
  5. Fix warning under older versions of JRuby that didn't provide $-w

    authored
    The warning was: "warning: global variable `$-w' not initialized"
Commits on Nov 24, 2013
  1. Downgrade Rubinius's test/unit gem to avoid a problem with the latest

    authored
    See comment for details. The exception looks like this:
    
        MiniTest::Unit::TestCase is now Minitest::Test. From /Users/chrisk/.rvm/gems
        /rbx-2.2.1/gems/rubysl-test-unit-2.0.2/lib/test/unit/testcase.rb:8:in
        `__script__'
        An exception occurred running /Users/chrisk/.rvm/gems/rbx-2.2.1@global/gems
        /rake-10.1.0/lib/rake/rake_test_loader.rb:
        undefined method `_run_suite' for class `Test::Unit::Runner' (NameError)
    
        Backtrace:
    
        Module(Class)#alias_method at kernel/delta/module.rb:39
        Rubinius::ConstantScope#alias_method at kernel/common/constant_scope.rb:93
        { } in Object(Class)#__script__ at /Users/chrisk/.rvm/gems/rbx-2.2.1/gems/
                           rubysl-test-unit-2.0.2/lib/rubysl/test/unit/unit.rb:676
        ...
  2. Update tests to expect the Net::HTTP behavior in forthcoming versions…

    authored
    … of JRuby
    
    The latest build identifies itself as Ruby 2.1.0, although its Net::HTTP
    implementation still diverges a bit from MRI (due to having a different
    underlying SSL implementation, I assume).
  3. Quell ruby 2.1.0-preview2's deprecation warning about File.exists?

    authored
    It says: "warning: File.exists? is a deprecated name, use File.exist? instead"
  4. Get the tests running on Rubinius 2

    authored
    I'm having trouble getting simplecov to work with Rubinius's coverage stdlib,
    so I'm skipping that for now.
  5. Enable simultaneous test runs by interpolating TEST_ENV_NUMBER into s…

    authored
    …implecov's dir name
    
    Otherwise, the test runners overwrite each other's coverage data, producing false negatives.
    
    TEST_ENV_NUMBER is the variable used in parallel_tests for database names, etc.
  6. More robust technique to strip out other people's warnings in a test …

    authored
    …helper
    
    Instead of playing whack-a-mole with new warnings every time someone ships new
    code, this simply removes anything originating in gems or the stdlib.
  7. Fix that tests run in forked processes were printing coverage reports

    authored
    For a few tests, we shell out to `ruby -e "require 'fakeweb'; ..."` to get a
    clean environment in order to check what warnings appear when you combine
    FakeWeb with other libs. Recently these processes starting printing coverage
    reports, which messes with our assertions about the warnings output.
    
    This sets the SimpleCov formatter to `MultiFormatter[]` for those processes,
    which keeps them collecting/logging coverage data while suppressing any output.
    
    p.s. this also sneaks in a more robust technique for checking whether the full
    suite is being run (in #running_all_tests?).
Commits on Nov 18, 2013
  1. Upgrade mocha to the latest

    authored
Commits on May 19, 2013
  1. Merge branch GunioRobot/clean, closing #29

    authored
    * GunioRobot/clean:
      Revert the whitespace-bot's changes to vendored gems
      Remove whitespace [Gun.io WhitespaceBot]
  2. Revert the whitespace-bot's changes to vendored gems

    authored
    This reverts part of commit 3b78bb4.
Commits on May 16, 2013
Commits on May 15, 2013
  1. Update test descriptions to reflect intent of 6b2075f

    authored
    Also, use more concise matchers.
  2. Merge branch myronmarston/nil_response_body, closing #32

    authored
    * myronmarston/nil_response_body:
      Return nil when the body is stubbed as '' or nil.
    
    Conflicts:
    	test/test_fake_web.rb
Commits on May 14, 2013
  1. RDoc no longer supports 1.8.6

    authored
  2. @trevorrowe

    Add #read_timeout and #continue_timeout to match Net::HTTP API

    trevorrowe authored
    Net::HTTPSession objects support #read_timeout and #continue_timeout setters and getters.  When using fakeweb via VCR, code using these attributes raise errors (NoMethodError: undefined method).  
    
    Adding these attributes resolve the issue.
Commits on May 12, 2013
  1. Run the tests' preflight checks under autotest, too

    authored
    This includes a quick extract-method refactor (well, extract-task) so
    you can run the preflight checks without running all the tests.
Something went wrong with that request. Please try again.