Sha256: e072555153a45c1ab3ce2ef12546ba5f7fbaa1249215a165c226866706317ba0
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
require File.dirname(__FILE__) + '/../helper' module AffiliateWindow class AccountSpec < MiniTest::Unit::TestCase Klass = ::AffiliateWindow::Account describe Klass do describe '#compression_parameter' do it 'should return an empty string if compression is :none' do @account = account @account.compression = :none @account.compression_parameter.must_equal '' end it 'requires a datafeed password' do proc { Klass.new(account.attributes.merge(:datafeed_password => nil)) }.must_raise ArgumentError end it 'requires an API password' do proc { Klass.new(account.attributes.merge(:api_password => nil)) }.must_raise ArgumentError end it 'requires an API key' do proc { Klass.new(account.attributes.merge(:api_key => nil)) }.must_raise ArgumentError end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
affiliate-window-0.2.1.pre1 | spec/affiliate_window/account_spec.rb |