Sha256: a77dbee3b63a22f31cce5b7f7deb9726e0f45949630d7c46176dbd8199f757c0
Contents?: true
Size: 891 Bytes
Versions: 4
Compression:
Stored size: 891 Bytes
Contents
require 'spec_helper' describe Metric::Configuration do it "uses configuration defaults" do Metric.configure do |config| config.api_key = "test" end Metric.configuration.host.should == "api.metric.io" end it "configures metric host" do Metric.configure do |config| config.host = "localhost:5000" end Metric.configuration.host.should == "localhost:5000" end it "configures api_key" do Metric.configure do |config| config.api_key = "test" end Metric.configuration.api_key.should == "test" end it "configures secret key" do Metric.configure do |config| config.secret_key = "random_string" end Metric.configuration.secret_key.should == "random_string" end it "configures ssl" do Metric.configure do |config| config.ssl = false end Metric.configuration.ssl.should == false end end
Version data entries
4 entries across 4 versions & 1 rubygems