Sha256: 6e4c597365d233bad45c636113763a8f4a4779bda3790af2173c775bb4f84767
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe 'YahooAPI' do it 'should set&get appid' do YaCan::YahooAPI.appid = 'yahoo_api_spec' YaCan::YahooAPI.appid.should == 'yahoo_api_spec' end it 'should raise exception when appid is nil' do YaCan::YahooAPI.appid = nil expect{ YaCan::YahooAPI.appid }.to raise_error(YaCan::YahooAPI::AppIDUnconfiguredError) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yacan-0.1.1 | spec/yahoo_api_spec.rb |
yacan-0.1.0 | spec/yahoo_api_spec.rb |