Sha256: 25bf308c72fad30ab7af5278e093b01ef26eb7c8ae57a07a58e28b59efa85b93
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
require 'spec_helper' describe Config do it "should add keys and values" do Cartoset::Config.update(:test => 'vizzuality') cartoset_config = YAML.load_file(Cartoset::Config.path) cartoset_config.should_not be_nil cartoset_config['test'].should be == 'vizzuality' Cartoset::Config['test'].should be == 'vizzuality' Cartoset::Config['test'] = 'cartoset' Cartoset::Config['test'].should be == 'cartoset' end it "should check if cartoset config is valid" do Cartoset::Config.update :cartodb_oauth_key => 'test', :cartodb_oauth_secret => 'test', :app_name => 'whs', :features_table => 'whs_features' Cartoset::Config.should be_valid end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cartoset-0.0.2 | spec/lib/cartoset/config_spec.rb |
cartoset-0.0.1 | spec/lib/cartoset/config_spec.rb |