Sha256: baf7795c9f171e6760688a03d3e5c71bb9864b255f5c3ae13438887e1756fbae

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

require './lib/flok.rb'
require 'tempfile'
require 'securerandom'

RSpec.describe "CLI" do
  it "Creates a new module folder" do
    #Get a temporary file, delete it, but save the path
    temp = Tempfile.new "flok-temp"
    path = temp.path
    temp.close
    temp.unlink

    `ruby -Ilib ./bin/flok new #{path}`

    (Dir.exists? path).should eq(true)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flok-0.0.1 spec/cli_spec.rb