Sha256: 913d66b577d877bc93734aab05534b28837bc63fb888d7f5c21e2e9aaa996619

Contents?: true

Size: 859 Bytes

Versions: 4

Compression:

Stored size: 859 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '../../spec_helper')

describe "Config class" do
  before(:all) do

    LazyGoogleAnalytics::Config.setup do |config|
      config.pass_phrase = config_options["pass_phrase"]
      config.key_file    = config_options["key_file"]
      config.client_id   = config_options["client_id"]
      config.scope       = config_options["scope"]
      config.profile_id  = config_options["profile_id"]
      config.email       =  config_options["email"]
    end
  end

  it "has all the keys required" do
    LazyGoogleAnalytics::Config.pass_phrase.should_not be_empty
    LazyGoogleAnalytics::Config.key_file.should_not be_empty
    LazyGoogleAnalytics::Config.scope.should_not be_empty
    LazyGoogleAnalytics::Config.profile_id.should_not be_empty
    LazyGoogleAnalytics::Config.email.should_not be_empty
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lazy_google_analytics-0.1.6 spec/functional/config_spec.rb
lazy_google_analytics-0.1.5 spec/functional/config_spec.rb
lazy_google_analytics-0.1.2 spec/functional/config_spec.rb
lazy_google_analytics-0.1.0 spec/functional/config_spec.rb