Skip to content

Commit

Permalink
Unfreeze options hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Chernenkov committed Feb 8, 2014
1 parent 6d23b4a commit 1c2fa02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/guard/rspec/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ module Options
cmd: 'rspec',
launchy: nil,
notification: true
}.freeze
}

class << self
def with_defaults(options = {})
_deep_merge(DEFAULTS, options).freeze
_deep_merge(DEFAULTS, options)
end

private
Expand Down
2 changes: 1 addition & 1 deletion lib/guard/rspec/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(options = {})

def run_all
paths = options[:spec_paths]
options = @options.merge(@options[:run_all]).freeze
options = @options.merge(@options[:run_all])
return true if paths.empty?
::Guard::UI.info(options[:message], reset: true)
_run(true, paths, options)
Expand Down

0 comments on commit 1c2fa02

Please sign in to comment.