Sha256: 8c4723e34bb816cdfaa7d5e6ce7638c1c7d1e0983e208a3065a05283ce4aaaad
Contents?: true
Size: 790 Bytes
Versions: 1
Compression:
Stored size: 790 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 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.6 | spec/metric/configuration_spec.rb |