Sha256: 613ce33bec5563a77fb29026ba363ee16148b3180a0b9c542fdbf4ab02c4cf2e
Contents?: true
Size: 825 Bytes
Versions: 1
Compression:
Stored size: 825 Bytes
Contents
require 'spec_helper' describe Metric::Configuration do after do reset_config end it "uses configuration defaults" do Metric.configure do |config| config.api_key = "test" end Metric.configuration.metric_host.should == "http://api.metric.io" end it "configures metric host" do Metric.configure do |config| config.metric_host = "http://localhost:5000" end Metric.configuration.metric_host.should == "http://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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metric-0.0.7 | spec/metric/configuration_spec.rb |