Sha256: 8226b6b6ca8c9347bf96a568df3a9683e8ff892029aeb836ab866c6414a3dd03
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
require 'spec_helper' require 'tmpdir' describe Klipp::Configuration do it 'points to .klipp inside the user\'s home directory' do Klipp::Configuration.root_dir.should eq File.join(Dir.home, '.klipp') end context 'with auto create enabled' do before do Klipp::Configuration.auto_create_dirs = true end it 'auto creates the .klipp directory' do Dir.expects(:mkdir).once File.expects(:exists?).once.returns false Klipp::Configuration.root_dir end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
klipp-0.0.1 | spec/klipp/configuration_spec.rb |