From 5af4528d2d3b45696f509e5d24bcf29cbb19b033 Mon Sep 17 00:00:00 2001 From: SoonKhen OwYong Date: Fri, 23 Oct 2015 13:39:50 +0800 Subject: [PATCH] Server is responding differently, updating the spec The response message was actually "authorization has expired" and not "Authorize has expired" --- spec/upyun_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/upyun_spec.rb b/spec/upyun_spec.rb index 0b0d8c8..fe74db3 100644 --- a/spec/upyun_spec.rb +++ b/spec/upyun_spec.rb @@ -337,7 +337,7 @@ it "set not correct 'expiration' should return 403 with expired" do res = @form.upload(@file, {'expiration' => 102400}) expect(res[:code]).to eq(403) - expect(res[:message]).to match(/Authorize has expired/) + expect(res[:message]).to match(/authorization has expired/) end it "set 'return-url' should return a hash" do