spec/moip2/auth/basic_spec.rb in moip2-0.1.4 vs spec/moip2/auth/basic_spec.rb in moip2-1.0.0

- old
+ new

@@ -1,9 +1,13 @@ describe Moip2::Auth::Basic do + let(:basic) do + described_class.new( + "01010101010101010101010101010101", + "ABABABABABABABABABABABABABABABABABABABAB", + ) + end - let(:basic) { described_class.new('01010101010101010101010101010101', 'ABABABABABABABABABABABABABABABABABABABAB') } - it "builds authorization header" do - expect(basic.header).to eq "Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg==" + expect(basic.header).to eq "Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkF"\ + "CQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg==" end - end