diff --git a/lib/guard/rails.rb b/lib/guard/rails.rb index ad44f37..4149e90 100644 --- a/lib/guard/rails.rb +++ b/lib/guard/rails.rb @@ -16,7 +16,7 @@ module Guard :force_run => false }.merge(options) - @runner = Guard::RailsRunner.new(options) + @runner = RailsRunner.new(options) end def start diff --git a/spec/lib/guard/rails_spec.rb b/spec/lib/guard/rails_spec.rb index e6aec1a..ecadcc9 100644 --- a/spec/lib/guard/rails_spec.rb +++ b/spec/lib/guard/rails_spec.rb @@ -2,6 +2,14 @@ require 'spec_helper' require 'guard/rails' 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