Sha256: 19519165da5c44724bb60c0b9f1541e09eee8a9ede38799917acb5402b5153b2
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
require 'spec_helper' require 'focuslight/cli' describe Focuslight::CLI do let(:cli) { Focuslight::CLI.new } context "#new" do before { cli.invoke(:new) } it { expect(Dir.exists?(Focuslight::CLI::BASE_DIR)).to be_true expect(Dir.exists?(Focuslight::CLI::LOG_DIR)).to be_true expect(File.read(Focuslight::CLI::ENV_FILE)).to eql(Focuslight::CLI::DEFAULT_DOTENV) expect(File.read(Focuslight::CLI::PROCFILE)).to eql(Focuslight::CLI::DEFAULT_PROCFILE) expect(File.exists?(Focuslight::CLI::CONFIGRU_FILE)).to be_true } after { FileUtils.remove_dir(Focuslight::CLI::BASE_DIR) } end context "#init" do before { cli.invoke(:new) Dir.chdir(Focuslight::CLI::BASE_DIR) {|path| cli.invoke(:init) } } it { expect(Dir.exists?(Focuslight::CLI::DATA_DIR)).to be_true } after { FileUtils.remove_dir(Focuslight::CLI::BASE_DIR) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
focuslight-0.1.3 | spec/cli_spec.rb |