Sha256: 9ff6f9225f1a7deffad2a3605060d7c29dd20758c1cd40a0cac2ad74e98bebcf

Contents?: true

Size: 1.4 KB

Versions: 2

Compression:

Stored size: 1.4 KB

Contents

require 'spec_helper'

describe ChinaAqi do
  before(:each) { ChinaAqi.token = '5j1znBVAsnSf5xQyNQyq' }

  ChinaAqi.token = '5j1znBVAsnSf5xQyNQyq'

  describe ChinaAqi::City do
    include_examples "common dynamic examples", ChinaAqi::City
    include_examples "class attribute", ChinaAqi::City, :only_aqi
  end

  describe ChinaAqi::CityPro do
    include_examples "common dynamic examples", ChinaAqi::CityPro
    include_examples "class attribute", ChinaAqi::CityPro, :aqi_details
  end

  describe ChinaAqi::CO do
    include_examples "common dynamic examples", ChinaAqi::CO
    include_examples "class attribute", ChinaAqi::CO, :co
  end

  describe ChinaAqi::NO2 do
    include_examples "common dynamic examples", ChinaAqi::NO2
    include_examples "class attribute", ChinaAqi::NO2, :no2
  end

  describe ChinaAqi::O3 do
    include_examples "common dynamic examples", ChinaAqi::O3
    include_examples "class attribute", ChinaAqi::O3, :o3
  end

  describe ChinaAqi::PM10 do
    include_examples "common dynamic examples", ChinaAqi::PM10
    include_examples "class attribute", ChinaAqi::PM10, :pm10
  end

  describe ChinaAqi::PM25 do
    include_examples "common dynamic examples", ChinaAqi::PM25
    include_examples "class attribute", ChinaAqi::PM25, :pm2_5
  end

  describe ChinaAqi::SO2 do
    include_examples "common dynamic examples", ChinaAqi::SO2
    include_examples "class attribute", ChinaAqi::SO2, :so2
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
china_aqi-0.0.3 spec/china_aqi/aqi/dynamic_spec.rb
china_aqi-0.0.2 spec/china_aqi/aqi/dynamic_spec.rb