Go to file
Jesse Newland 97a178bfa4 Decorate responses from Rack Middleware and Rails Metal for the purposes of integration testing. A test for the following Metal:
class Poller < Rails::Rack::Metal
      def call(env)
        if env["PATH_INFO"] =~ /^\/poller/
          [200, {"Content-Type" => "text/plain"}, "Hello World!"]
        else
          super
        end
      end
    end

might be tested like so:

  class PollerTest < ActionController::IntegrationTest
    test "poller returns hello world" do
      get "/poller"
      assert_response 200
      assert_response :success
      assert_response :ok
      assert_equal "Hello World!", response.body
    end
  end

[#1588 state:committed]

Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2008-12-17 15:59:47 +01:00
actionmailer normalize author names in changelogs [#1495 state:committed] 2008-12-16 14:33:32 +01:00
actionpack Decorate responses from Rack Middleware and Rails Metal for the purposes of integration testing. A test for the following Metal: 2008-12-17 15:59:47 +01:00
activemodel Merge with docrails 2008-12-07 03:27:53 +01:00
activerecord Update documentation for default_scope 2008-12-16 14:34:02 +01:00
activeresource normalize author names in changelogs [#1495 state:committed] 2008-12-16 14:33:32 +01:00
activesupport normalize author names in changelogs [#1495 state:committed] 2008-12-16 14:33:32 +01:00
ci Spam more people, the list is next 2008-11-18 20:52:07 +01:00
doc/template Horo rdoc template 2008-06-22 10:38:25 -07:00
railties Introduce Rails Metal 2008-12-16 13:15:06 -06:00
.gitignore Merge with docrails. Also add a rake task to generate guides in your rails application : 2008-10-21 18:33:40 +01:00
pushgems.rb No more svn version numbers to rely on, use timestamps instead 2008-05-11 18:21:47 -05:00
Rakefile Horo rdoc template 2008-06-22 10:38:25 -07:00
release.rb Use copy instead of export for release 2008-09-05 14:22:56 +02:00