Skip to content

Commit

Permalink
Fix broken integration test in 1.9.1-p378.
Browse files Browse the repository at this point in the history
  • Loading branch information
djanowski committed Apr 22, 2010
1 parent 80ea640 commit 438e53c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion spec/integration/rack/app.rb
Expand Up @@ -38,7 +38,8 @@ class RackApp < Sinatra::Base
end

post "/upload" do
params[:uploaded_file].to_yaml
uploaded_file = params[:uploaded_file]
Marshal.dump(:tempfile => uploaded_file[:tempfile].read, :type => uploaded_file[:type], :filename => uploaded_file[:filename])
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/integration/rack/test/webrat_rack_test.rb
Expand Up @@ -53,10 +53,10 @@ def test_upload_file
attach_file "File", __FILE__, "text/ruby"
click_button "Upload"

upload = YAML.load(response_body)
upload = Marshal.load(response_body)
assert_equal "text/ruby", upload[:type]
assert_equal "webrat_rack_test.rb", upload[:filename]
assert upload[:tempfile].respond_to?(:read)
assert_equal File.read(__FILE__), upload[:tempfile]
end
end

Expand Down

0 comments on commit 438e53c

Please sign in to comment.