Sha256: e3a31d0a8fca2068a9279ed5bdf9714b280fc158768e83788f5e5e56c30bcf25

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

require 'spec_helper'

describe TimedConfig do
  it "should be sleeping" do
    TimedConfig.thread.status.should == 'sleep'
  end
  
  it "should not have set a config" do
    TimedConfig.config.should == nil
  end
  
  it "should set a config when path set" do
    TimedConfig.path = "#{$root}/spec/fixtures/config.yml"
    sleep 0.1
    TimedConfig.config.should == { 'test' => 'test' }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timed_config-0.1.0 spec/timed_config_spec.rb