Sha256: 9e3eaf8236c642f64f777d00736f51c0f901f3dabcf45d8731664034ff070041
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 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://api.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metric-0.0.5 | spec/metric/configuration_spec.rb |