From bc40c594a48e54aff727e1d518fa8c3bc5fc2560 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 1 Jun 2011 10:36:12 -0400 Subject: [PATCH] fix another command generation bug --- lib/guard/rails.rb | 2 +- spec/lib/guard/rails_spec.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/guard/rails.rb b/lib/guard/rails.rb index c7a6084..420f688 100644 --- a/lib/guard/rails.rb +++ b/lib/guard/rails.rb @@ -16,7 +16,7 @@ module Guard :force_run => false }.merge(options) - @runner = 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 c743760..2edd7a7 100644 --- a/spec/lib/guard/rails_spec.rb +++ b/spec/lib/guard/rails_spec.rb @@ -9,6 +9,8 @@ describe Guard::Rails do describe '#initialize' do it "should initialize with options" do guard + + guard.runner.options[:port].should == 3000 end end