Sha256: eedab2bc9a87b4976447db28a46e93660cc7ff7acde66556eb17d574f55a7cb5
Contents?: true
Size: 1.12 KB
Versions: 7
Compression:
Stored size: 1.12 KB
Contents
require "spec_helper" describe Balanced::ApiKey do describe "attributes", :vcr do before do @key = Balanced::ApiKey.new.save end describe "#secret" do subject { @key.secret } it { should_not be_nil } it { should_not be_empty } end describe "#merchant" do subject { @key.merchant } it { should_not be_nil } it { should be_instance_of Balanced::Merchant } end end describe "new key", :vcr do describe "before configure", :vcr do before do @new_key = Balanced::ApiKey.new.save end describe "#merchant", :vcr do subject { @new_key.merchant } it { should_not be_nil } it { should be_instance_of Balanced::Merchant } end end describe "after configure", :vcr do before do @new_key = Balanced::ApiKey.new.save Balanced.configure @new_key.secret @new_key = Balanced::ApiKey.new.save end describe "#merchant", :vcr do subject { @new_key.merchant } it { should_not be_nil } it { should be_instance_of Balanced::Merchant } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems