Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix AWS::S3::Client specs for non-PDT timezones. #2

Merged
merged 1 commit into from
Jul 21, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/aws/s3/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def should_determine_content_length_for data, length

it "formats Time values" do
http_handler.should_receive(:handle) do |req, resp|
req.headers[header].should == "Mon, 13 Jun 2011 15:42:31 -0700"
req.headers[header].should == Time.parse("Mon, 13 Jun 2011 15:42:31 -0700").rfc2822
end
my_opts = opts.dup
my_opts[option_name] = Time.parse("2011-06-13 15:42:31 -0700")
Expand All @@ -680,7 +680,7 @@ def should_determine_content_length_for data, length

it "formats DateTime values" do
http_handler.should_receive(:handle) do |req, resp|
req.headers[header].should == "Mon, 13 Jun 2011 15:42:31 -0700"
req.headers[header].should == Time.parse("Mon, 13 Jun 2011 15:42:31 -0700").rfc2822
end
my_opts = opts.dup
my_opts[option_name] = DateTime.parse("2011-06-13 15:42:31 -0700")
Expand Down