Sha256: 676ff575939dc7b386e84ea77fbb943f262ac1a16662e4f5f50b806b4e0aff12

Contents?: true

Size: 725 Bytes

Versions: 11

Compression:

Stored size: 725 Bytes

Contents

require 'spec_helper'
require 'tmpdir'
require 'fileutils'

describe "InitTask" do 
  before :each do
    @original_dir = Dir.pwd
    @project_root = Dir.mktmpdir("hi5")
    Dir.chdir @project_root
  end

  after :each do
    Dir.chdir @original_dir
    FileUtils.rm_rf @project_root
  end

  it "should create high_five.rb in the config directory" do
    HighFive::Cli.start(["init"])
    Dir.exists?(File.join(@project_root, "config")).should be_true
    File.exists?(File.join(@project_root, "config", "high_five.rb")).should be_true
    Dir.exists?(File.join(@project_root, "config", "high_five")).should be_true
    File.exists?(File.join(@project_root, "config", "high_five", "app-common.js")).should be_true
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
high_five-0.1.5 spec/init_spec.rb
high_five-0.1.4 spec/init_spec.rb
high_five-0.1.3 spec/init_spec.rb
high_five-0.1.2 spec/init_spec.rb
high_five-0.1.1 spec/init_spec.rb
high_five-0.1.0 spec/init_spec.rb
high_five-0.0.8 spec/init_spec.rb
high_five-0.0.7 spec/init_spec.rb
high_five-0.0.6 spec/init_spec.rb
high_five-0.0.5 spec/init_spec.rb
high_five-0.0.4 spec/init_spec.rb