Sha256: 42134bd924142b7ec72107e7a5b9ed3a8017683ed4b06837e6bfd0a68590e532

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 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_truthy
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
s3log-0.0.5 spec/lib/s3log/cli_spec.rb