Sha256: 3e6265996175d4202021ddd9782de3da2c4febf94d191fbe95a82713fd2a6ced

Contents?: true

Size: 757 Bytes

Versions: 24

Compression:

Stored size: 757 Bytes

Contents

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

describe HighFive::Thor::Tasks::Init 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::Thor::Tasks::Init.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

24 entries across 24 versions & 1 rubygems

Version Path
high_five-0.3.23 spec/init_spec.rb
high_five-0.3.22 spec/init_spec.rb
high_five-0.3.21 spec/init_spec.rb
high_five-0.3.20 spec/init_spec.rb
high_five-0.3.19 spec/init_spec.rb
high_five-0.3.18 spec/init_spec.rb
high_five-0.3.17 spec/init_spec.rb
high_five-0.3.16 spec/init_spec.rb
high_five-0.3.15 spec/init_spec.rb
high_five-0.3.14 spec/init_spec.rb
high_five-0.3.13 spec/init_spec.rb
high_five-0.3.12 spec/init_spec.rb
high_five-0.3.11 spec/init_spec.rb
high_five-0.3.10 spec/init_spec.rb
high_five-0.3.9 spec/init_spec.rb
high_five-0.3.8 spec/init_spec.rb
high_five-0.3.7 spec/init_spec.rb
high_five-0.3.6 spec/init_spec.rb
high_five-0.3.5 spec/init_spec.rb
high_five-0.3.4 spec/init_spec.rb