Sha256: fe222255768a747d7b7bc72b92d2c6c3c652c1e16e0ada1017679c2f839e81fb
Contents?: true
Size: 1.88 KB
Versions: 15
Compression:
Stored size: 1.88 KB
Contents
require 'spec_helper' java_import java.util.UUID java_import org.joda.time.DateTimeZone java_import com.ning.billing.catalog.api.Currency describe Killbill::Plugin do before(:each) do @account_user_api = MockAccountUserApi.new end it 'should be able to access Killbill mock APIs' do @account_user_api.createAccount(UUID.randomUUID, 'externalKey', 'email', 'name', 1, Currency::USD, 12, UUID.randomUUID, DateTimeZone::UTC, 'locale', 'address1', 'address2', 'companyName', 'city', 'stateOrProvince', 'country', 'postalCode', 'phone') account = @account_user_api.getAccountByKey('externalKey', nil) account.external_key.should == 'externalKey' account.email.should == 'email' account.name.should == 'name' account.first_name_length.should == 1 account.currency.should == Currency::USD account.payment_method_id.should_not be_nil account.time_zone.should == DateTimeZone::UTC account.locale.should == 'locale' account.address1.should == 'address1' account.address2.should == 'address2' account.company_name.should == 'companyName' account.city.should == 'city' account.state_or_province.should == 'stateOrProvince' account.country.should == 'country' account.postal_code.should == 'postalCode' account.phone.should == 'phone' end end
Version data entries
15 entries across 15 versions & 1 rubygems