From bf2eaf9f585753a9e7b4f0d34617662ee86a14c1 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 1 Jun 2011 10:13:04 -0400 Subject: [PATCH] fix a resolution issue and add a test for it --- lib/guard/rails.rb | 2 +- spec/lib/guard/rails_spec.rb | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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