Permalink
Browse files

remove all runner dependencies, fix specs

  • Loading branch information...
1 parent 0c922a7 commit fbfae4f7f2f345a2aff3358b7e97c28e2e3db468 @effkay committed Apr 1, 2012
Showing with 6 additions and 6 deletions.
  1. +2 −1 Guardfile
  2. +1 −1 lib/blazing.rb
  3. +1 −1 lib/blazing/cli.rb
  4. +1 −2 spec/blazing/integration/init_spec.rb
  5. +1 −1 spec/blazing/integration/list_spec.rb
View
@@ -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
View
@@ -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'
View
@@ -1,5 +1,5 @@
require 'thor'
-require 'blazing/runner'
+require 'blazing/commands'
module Blazing
class CLI < Thor
@@ -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
@@ -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.