Sha256: 0d9792b35e178d363639c7d0b61451324d825a3d930c1a6f93213bec5554dffa
Contents?: true
Size: 540 Bytes
Versions: 3
Compression:
Stored size: 540 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' require 'fileutils' describe "Shutter::CommandLine" do it "should create the configuration directory if it does not exist" do cmd = Shutter::CommandLine.new('./tmp/configs') cmd.init File.directory?('./tmp/configs').should == true FileUtils.rm_rf('./tmp/configs') end it "should not recursively create the configuration directory if the parent does not exist" do cmd = Shutter::CommandLine.new('./tmp/configs/this') expect { cmd.init }.to raise_error end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shutter-0.0.7 | spec/command_line_spec.rb |
shutter-0.0.6 | spec/command_line_spec.rb |
shutter-0.0.5 | spec/command_line_spec.rb |