Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix broken integration test in 1.9.1-p378.

  • Loading branch information...
commit 438e53c295f03285a5a9d203ac990f51fafd7011 1 parent 80ea640
Damian Janowski djanowski authored
3  spec/integration/rack/app.rb
@@ -38,7 +38,8 @@ class RackApp < Sinatra::Base
38 38 end
39 39
40 40 post "/upload" do
41   - params[:uploaded_file].to_yaml
  41 + uploaded_file = params[:uploaded_file]
  42 + Marshal.dump(:tempfile => uploaded_file[:tempfile].read, :type => uploaded_file[:type], :filename => uploaded_file[:filename])
42 43 end
43 44 end
44 45
4 spec/integration/rack/test/webrat_rack_test.rb
@@ -53,10 +53,10 @@ def test_upload_file
53 53 attach_file "File", __FILE__, "text/ruby"
54 54 click_button "Upload"
55 55
56   - upload = YAML.load(response_body)
  56 + upload = Marshal.load(response_body)
57 57 assert_equal "text/ruby", upload[:type]
58 58 assert_equal "webrat_rack_test.rb", upload[:filename]
59   - assert upload[:tempfile].respond_to?(:read)
  59 + assert_equal File.read(__FILE__), upload[:tempfile]
60 60 end
61 61 end
62 62

0 comments on commit 438e53c

Please sign in to comment.
Something went wrong with that request. Please try again.