Sha256: 1d9c08a33ace1a5a9896cc06b9623cd86a983ad970847a2bc5524f29747c58d0
Contents?: true
Size: 924 Bytes
Versions: 1
Compression:
Stored size: 924 Bytes
Contents
require_relative '../../helper' module AffiliateWindow module Clients class CategorySpec < MiniTest::Unit::TestCase Klass = AffiliateWindow::Clients::Category describe Klass do describe '.new' do it 'requires an account' do proc { Klass.new }.must_raise ArgumentError end end describe 'Instances' do before do @client = Klass.new(account) end it 'handles CSV files' do @client.must_respond_to :csv @client.must_respond_to :each @client.must_respond_to :all end describe '#url' do it 'returns a completed URL template' do @client.url.must_match /#{account.user}/ @client.url.must_match /#{account.datafeed_password}/ end end 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/clients/category_spec.rb |