Skip to content

Commit

Permalink
Fix support for CLI invocations and RAILS_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Healey committed Jun 6, 2012
1 parent cd7d32b commit ae904a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/guard/jasmine/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def spec(*paths)
runner[:phantomjs_bin] = options.bin || CLI.which('phantomjs')
runner[:timeout] = options.timeout
runner[:port] = options.port
runner[:server_env] = options.server_env
runner[:server_env] = ENV['RAILS_ENV'] || options.server_env
runner[:spec_dir] = options.spec_dir
runner[:console] = [:always, :never, :failure].include?(options.console.to_sym) ? options.console.to_sym : :failure
runner[:errors] = [:always, :never, :failure].include?(options.errors.to_sym) ? options.errors.to_sym : :failure
Expand Down

0 comments on commit ae904a7

Please sign in to comment.