Sha256: 2ab2be06dd4dd7c28903873df7dc6b443ce99691806202bfad299528b85917c6
Contents?: true
Size: 824 Bytes
Versions: 2
Compression:
Stored size: 824 Bytes
Contents
require 'spec_helper' require 'blazing' require 'blazing/cli/create' describe Blazing::CLI::Create do before :each do @logger = double('logger', :log => nil, :report => nil) @config_generator = Blazing::CLI::Create.new @config_generator.instance_variable_set('@logger', @logger) end it 'knows the source root for its tempate' do Blazing::CLI::Create.source_root.should == File.dirname(__FILE__).gsub('spec', 'lib') end it 'creates an empty directory for the config file' do @config_generator.should_receive(:empty_directory).with(Blazing::DIRECTORY) @config_generator.create_blazing_dir end it 'creates the config file' do @config_generator.should_receive(:template).with('templates/blazing.tt', Blazing::CONFIGURATION_FILE) @config_generator.create_config_file end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blazing-0.0.9 | spec/blazing/cli/create_spec.rb |
blazing-0.0.8 | spec/blazing/cli/create_spec.rb |