Skip to content
This repository has been archived by the owner on Feb 12, 2018. It is now read-only.

Commit

Permalink
Updates for new guard plugin code
Browse files Browse the repository at this point in the history
  • Loading branch information
Joey Geiger committed Feb 11, 2015
1 parent 523f0b9 commit 225dc56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/guard/spin.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'guard'
require 'guard/guard'
require 'guard/plugin'

module Guard
class Spin < Guard
class Spin < Plugin

autoload :Runner, 'guard/spin/runner'
attr_accessor :runner

def initialize(watchers=[], options={})
def initialize(options={})
super
@runner = Runner.new(options)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/guard/spin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe '#initialize' do
it "instantiates Runner with given options" do
Guard::Spin::Runner.should_receive(:new).with(:bundler => false)
Guard::Spin.new [], { :bundler => false }
Guard::Spin.new({ :bundler => false })
end
end

Expand Down

0 comments on commit 225dc56

Please sign in to comment.