Skip to content

Commit

Permalink
remove all runner dependencies, fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
effkay committed Apr 1, 2012
1 parent 0c922a7 commit fbfae4f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Guardfile
Expand Up @@ -12,5 +12,6 @@ guard :rspec, :version => 2, :cli => "--colour --fail-fast --format nested" do
watch(%r{^lib/blazing/(.+)\.rb}) { |m| "spec/blazing/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
watch(%r{^lib/blazing/templates/(.+)}) { "spec" }
watch('lib/blazing/runner.rb') { "spec/blazing/integration/*" }
watch('lib/blazing/cli.rb') { "spec/blazing/integration/*" }
watch('lib/blazing/commands.rb') { "spec/blazing/integration/*" }
end
2 changes: 1 addition & 1 deletion lib/blazing.rb
Expand Up @@ -6,7 +6,7 @@ module Blazing
autoload :Config, 'blazing/config'
autoload :DSLSetter, 'blazing/dsl_setter'
autoload :Recipe, 'blazing/recipe'
autoload :Runner, 'blazing/runner'
autoload :COmmands, 'blazing/commands'
autoload :Shell, 'blazing/shell'
autoload :Target, 'blazing/target'

Expand Down
2 changes: 1 addition & 1 deletion lib/blazing/cli.rb
@@ -1,5 +1,5 @@
require 'thor'
require 'blazing/runner'
require 'blazing/commands'

module Blazing
class CLI < Thor
Expand Down
3 changes: 1 addition & 2 deletions spec/blazing/integration/init_spec.rb
@@ -1,12 +1,11 @@
require 'spec_helper'
require 'blazing/config'
require 'blazing/runner'

describe '$ blazing init' do

before :each do
setup_sandbox
Blazing::Runner.init
Blazing::Commands.new(:file => File.join(File.dirname(__FILE__), '../../support/empty_config.rb')).init
end

after :each do
Expand Down
2 changes: 1 addition & 1 deletion spec/blazing/integration/list_spec.rb
Expand Up @@ -14,7 +14,7 @@
it 'prints a list of the available recipes' do
class Blazing::Recipe::Dummy < Blazing::Recipe
end
capture(:stdout) { Blazing::Runner.list }.should == "dummy\n"
capture(:stdout) { Blazing::Commands.new(:file => File.join(File.dirname(__FILE__), '../../support/empty_config.rb')).list }.should == "dummy\n"
end
end

0 comments on commit fbfae4f

Please sign in to comment.