spec/moip2/keys_spec.rb in moip2-0.1.4 vs spec/moip2/keys_spec.rb in moip2-1.0.0
- old
+ new
@@ -1,19 +1,17 @@
describe Moip2::KeysApi do
- let(:keys_api) { described_class.new sandbox_oauth_client }
-
- describe "#show" do
-
- let(:keys) do
- VCR.use_cassette("get_keys") do
- keys_api.show
- end
- end
-
- context 'when shooting request by keys' do
- it { expect(keys).not_to be_nil }
- it { expect(keys.keys.basic_auth.secret).to eq "ABABABABABABABABABABABABABABABABABABABAB" }
- it { expect(keys.keys.basic_auth.token).to eq "01010101010101010101010101010101"}
- end
- end
-
-end
\ No newline at end of file
+ let(:keys_api) { described_class.new sandbox_oauth_client }
+
+ describe "#show" do
+ let(:keys) do
+ VCR.use_cassette("get_keys") do
+ keys_api.show
+ end
+ end
+
+ context "when shooting request by keys" do
+ it { expect(keys).not_to be_nil }
+ it { expect(keys.keys.basic_auth.secret).to eq "ABABABABABABABABABABABABABABABABABABABAB" }
+ it { expect(keys.keys.basic_auth.token).to eq "01010101010101010101010101010101" }
+ end
+ end
+end