Sha256: 9feef99fdbd5cf8e912958c1bf03d469718e58f1c5bd922a6f2830312129bfc1
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
require 'spec_helper' describe ChinaAqi do before { described_class.token = nil } it 'have a version number' do expect(ChinaAqi::VERSION).not_to be_nil end it 'return token which defined in rails application configuration file.' do stub_const('Rails', Module.new) allow(Rails).to receive_message_chain('application.config.china_aqi_token') { 'chian_aqi_token_test_sample' } expect(described_class.token).to eq('chian_aqi_token_test_sample') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
china_aqi-0.0.5 | spec/china_aqi_spec.rb |