Sha256: e89b08af1023f0a6ae60ab336e93107bb80ef839e2abf0e433ce968b43966c45
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
require 'spec_helper' module Beatport::Catalog describe AccountType do describe 'structure' do subject do VCR.use_cassette "account_type_all" do AccountType.all.first end end it { should be_an(AccountType) } its (:code) { should == "AMEX" } its (:bpid) { should == 1 } its (:name) { should == "American Express"} its (:cybersource_card_type) { should == "003" } its (:issue_number_or_start_date_required) { should == false } its (:validation_regex) { should == /^3[47][0-9]{13}$/ } its (:'images.small.url') { should == "https://secure-beatport.bpddn.com/images/creditcard/logo_cc_amex_37x23.gif"} end describe '.all' do subject do VCR.use_cassette "account_type_all" do AccountType.all end end its (:length) { should be > 1 } end describe '.find' do context "by id" do pending "Isn't currently supported by beatport" # subject { AccountType.find(2) } # its (:name) { should == "Visa" } end context "by name" do subject do VCR.use_cassette "account_type_visa" do AccountType.find('Visa') end end its (:name) { should == "Visa" } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beatport-0.1.5 | spec/catalog/account_type_spec.rb |