Sha256: 4acdb8df94533fa695926a236d1d825f58691e477cb9436cdb7b5d81fac0c642
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
require 'spec_helper' require 'stats_whisper/config' describe StatsWhisper::Config do subject { Class.new { extend StatsWhisper::Config } } before do Rails = double(:root => Pathname.new("spec/fixtures")) end after do Object.send(:remove_const, :Rails) end describe "#app_name" do context "when config file is given" do it "returns specified app name" do expect(subject.app_name).to eq('bar') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stats_whisper-0.2.3 | spec/integration/config_spec.rb |
stats_whisper-0.2.2.1 | spec/integration/config_spec.rb |