test/maestrano/api/resource_test.rb in maestrano-0.9.1 vs test/maestrano/api/resource_test.rb in maestrano-0.9.2
- old
+ new
@@ -66,11 +66,11 @@
Maestrano.configure { |c| c.api_key = @original_api_key }
end
should "use the per-object credential when creating" do
Maestrano::API::Operation::Base.expects(:execute_request).with do |opts|
- opts[:headers][:authorization] == "Basic #{Base64.encode64('someid:somekey')}"
+ opts[:headers][:authorization] == "Basic #{Base64.strict_encode64('someid:somekey')}"
end.returns(test_response(test_account_bill))
Maestrano::Account::Bill.create({
group_id: 'cld-1',
price_cents: 23000,
@@ -83,10 +83,10 @@
end
context "with a global API key set" do
should "use the per-object credential when creating" do
Maestrano::API::Operation::Base.expects(:execute_request).with do |opts|
- opts[:headers][:authorization] == "Basic #{Base64.encode64('someid:somekey')}"
+ opts[:headers][:authorization] == "Basic #{Base64.strict_encode64('someid:somekey')}"
end.returns(test_response(test_account_bill))
Maestrano::Account::Bill.create({
group_id: 'cld-1',
price_cents: 23000,
\ No newline at end of file