Sha256: 190452325991de471873e3fd66096608fd6010b15fe4ae5de9b825412f5a2755

Contents?: true

Size: 524 Bytes

Versions: 4

Compression:

Stored size: 524 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 's3log/cli'

describe S3log::Cli do

  before :each do
    @cli = S3log::Cli.new([], { 'configfile' => 'config.yml' })
    @testdir = File.join('spec','files','init')
    @cli.shell.mute do
      @cli.init(@testdir)
    end
    @oldpwd = Dir.pwd
    Dir.chdir @testdir
  end

  after :each do
    Dir.chdir @oldpwd
    FileUtils.rm_rf @testdir if Dir.exists? @testdir
  end

  it "init creates a working directory" do
    expect(File.file? 'config.yml').to be_true
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
s3log-0.0.4 spec/lib/s3log/cli_spec.rb
s3log-0.0.3 spec/lib/s3log/cli_spec.rb
s3log-0.0.2 spec/lib/s3log/cli_spec.rb
s3log-0.0.1 spec/lib/s3log/cli_spec.rb