Sha256: aaaf8964e91b508f16be3eb5f66fcfb65b7b563a0599f77f4100d9aa43752b12

Contents?: true

Size: 469 Bytes

Versions: 11

Compression:

Stored size: 469 Bytes

Contents

require 'spec_helper'
require 'blazing/config'
require 'blazing/runner'

describe 'blazing init' do

  before :each do
    setup_sandbox
    capture(:stdout) { Blazing::Runner.new.exec('init') }
  end

  after :each do
    teardown_sandbox
  end

  it 'creates a config directory if none exists yet' do
    File.exists?('config').should be true
  end

  it 'creates a config file in config/blazing.rb' do
    File.exists?('config/blazing.rb').should be true
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blazing-0.2.1 spec/blazing/integration/init_spec.rb
blazing-0.2.0 spec/blazing/integration/init_spec.rb
blazing-0.1.3 spec/blazing/integration/init_spec.rb
blazing-0.1.2 spec/blazing/integration/init_spec.rb
blazing-0.1.1 spec/blazing/integration/init_spec.rb
blazing-0.1.0 spec/blazing/integration/init_spec.rb
blazing-0.1.0.alpha6 spec/blazing/integration/init_spec.rb
blazing-0.1.0.alpha5 spec/blazing/integration/init_spec.rb
blazing-0.1.0.alpha4 spec/blazing/integration/init_spec.rb
blazing-0.1.0.alpha3 spec/blazing/integration/init_spec.rb
blazing-0.1.0.alpha2 spec/blazing/integration/init_spec.rb