Sha256: c55ee0faa80331b40e441d4e1bb3860d2a58f03605c0006be712984b93785c21
Contents?: true
Size: 713 Bytes
Versions: 2
Compression:
Stored size: 713 Bytes
Contents
# encoding: utf-8 # require 'spec_helper' describe Mocrata do after :each do Mocrata.reset end describe '.configure' do it 'sets configuration variables' do expect_any_instance_of(Mocrata::Configuration).to receive(:setting=).once Mocrata.configure do |config| config.setting = 'value' end end end describe '.config' do it 'instantiates and memoizes configuration instance' do expect(Mocrata.instance_variable_get(:@config)).to be_nil expect(Mocrata.config).to be_an_instance_of(Mocrata::Configuration) config = Mocrata.instance_variable_get(:@config) expect(config).to be_an_instance_of(Mocrata::Configuration) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mocrata-0.1.0 | spec/lib/mocrata_spec.rb |
mocrata-0.0.1 | spec/lib/mocrata_spec.rb |