Nikita Misharin
|
290aa62c33
|
[WIP] Fix encoding of streamed chunk (#644)
* Fix encoding of streamed chunk
* Explicitly add pry
* Remove global variables
|
2019-02-11 17:49:30 +04:00 |
|
James Brennan
|
e5a6edde06
|
Handle status codes as strings
`Net::HTTPReponse#new` will pass through whatever you give it as the
`code`, although a real `Net::HTTPResponse` status code is always a string.
http://docs.ruby-lang.org/en/2.0.0/Net/HTTPResponse.html#attribute-i-code.
|
2015-09-16 13:29:30 -07:00 |
|
James Billingham
|
539adf2c7f
|
Added testing coverage for all 3xx status codes
|
2015-07-09 15:02:18 +01:00 |
|
Thomas Nys
|
2a9683c9e7
|
Mitigates Style/SpaceAroundEqualsInParameterDefault
|
2015-04-18 12:27:50 +02:00 |
|
Michael Stock
|
cc0c2c85ca
|
Convert specs to RSpec 3.1.7 syntax with Transpec
This conversion is done by Transpec 2.3.8 with the following command:
transpec -f spec
* 328 conversions
from: obj.should
to: expect(obj).to
* 238 conversions
from: == expected
to: eq(expected)
* 42 conversions
from: obj.should_receive(:message)
to: expect(obj).to receive(:message)
* 26 conversions
from: it { should ... }
to: it { is_expected.to ... }
* 26 conversions
from: lambda { }.should
to: expect { }.to
* 21 conversions
from: mock('something')
to: double('something')
* 21 conversions
from: obj.stub(:message => value)
to: allow(obj).to receive_messages(:message => value)
* 19 conversions
from: be_true
to: be_truthy
* 19 conversions
from: its(:attr) { }
to: describe '#attr' do subject { super().attr }; it { } end
* 18 conversions
from: obj.stub!(:message)
to: allow(obj).to receive(:message)
* 15 conversions
from: obj.should_not_receive(:message)
to: expect(obj).not_to receive(:message)
* 10 conversions
from: obj.should_not
to: expect(obj).not_to
* 7 conversions
from: obj.stub(:message)
to: allow(obj).to receive(:message)
* 6 conversions
from: stub('something')
to: double('something')
* 5 conversions
from: be_false
to: be_falsey
* 4 conversions
from: expect { }.not_to raise_error(SpecificErrorClass)
to: expect { }.not_to raise_error
* 4 conversions
from: lambda { }.should_not
to: expect { }.not_to
* 3 conversions
from: =~ /pattern/
to: match(/pattern/)
* 2 conversions
from: obj.stub_chain(:message1, :message2)
to: allow(obj).to receive_message_chain(:message1, :message2)
* 1 conversion
from: === expected
to: be === expected
* 1 conversion
from: it { should_not ... }
to: it { is_expected.not_to ... }
For more details: https://github.com/yujinakayama/transpec#supported-conversions
|
2014-12-06 16:12:39 -08:00 |
|
Will Bryant
|
672cdae73a
|
added option to allow for streaming large files without loading them into memory
|
2014-11-03 12:53:06 -08:00 |
|
Kalman Hazins
|
5f9eedcfda
|
Changing symbol syntax inside hashes - take 2
|
2014-05-15 16:45:32 -04:00 |
|
Fabio Kreusch
|
19a9494eed
|
Adds support for fragmented responses
|
2012-02-15 17:46:01 -02:00 |
|
Sandro Turriate
|
7ea359d0eb
|
Refactor redirection handling
Closes gh-56
|
2011-01-18 16:19:45 -05:00 |
|
Sandro Turriate
|
e9f8739b63
|
Cleanup
|
2011-01-18 15:42:18 -05:00 |
|
Sandro Turriate
|
05dcf3b479
|
Fix ruby warnings
|
2010-05-08 00:43:36 -04:00 |
|
Sandro Turriate
|
e6e5990497
|
Encapsulate spec helper methods into a module
It's a good idea to encapsulate methods rather than have them hanging
around in global scope.
|
2010-01-29 15:20:48 -05:00 |
|