Sha256: 41daa45a3be92276013345c49d5c0d45cb5fb2dc7c53769987fab30912b196b7
Contents?: true
Size: 602 Bytes
Versions: 3
Compression:
Stored size: 602 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.metric_host.should == "http://metric.io" end it "configures api_key" do Metric.configure do |config| config.api_key = "test" end Metric.configuration.api_key.should == "test" 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metric-0.0.4 | spec/metric/configuration_spec.rb |
metric-0.0.3 | spec/metric/configuration_spec.rb |
metric-0.0.1 | spec/metric/configuration_spec.rb |