fix a resolution issue and add a test for it
This commit is contained in:
parent
745d49da67
commit
bf2eaf9f58
|
@ -16,7 +16,7 @@ module Guard
|
||||||
:force_run => false
|
:force_run => false
|
||||||
}.merge(options)
|
}.merge(options)
|
||||||
|
|
||||||
@runner = Guard::RailsRunner.new(options)
|
@runner = RailsRunner.new(options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start
|
def start
|
||||||
|
|
|
@ -2,6 +2,14 @@ require 'spec_helper'
|
||||||
require 'guard/rails'
|
require 'guard/rails'
|
||||||
|
|
||||||
describe Guard::Rails do
|
describe Guard::Rails do
|
||||||
|
let(:guard) { Guard::Rails.new(watchers, options) }
|
||||||
|
let(:watchers) { [] }
|
||||||
|
let(:options) { {} }
|
||||||
|
|
||||||
|
describe '#initialize' do
|
||||||
|
it "should initialize with options" do
|
||||||
|
guard
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue