Skip to content

Commit

Permalink
use :: to fix more failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
e2 committed Oct 22, 2014
1 parent 70e568b commit 35ecd2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/guard/reevaluator.rb
Expand Up @@ -5,9 +5,9 @@ module Guard
class Reevaluator < Guard::Plugin
def run_on_modifications(files)
return unless ::Guard::Watcher.match_guardfile?(files)
Guard.save_scope
::Guard.save_scope
::Guard.evaluator.reevaluate_guardfile
Guard.restore_scope
::Guard.restore_scope
end
end
end
4 changes: 2 additions & 2 deletions lib/guard/setuper.rb
Expand Up @@ -92,7 +92,7 @@ def save_scope
end

def restore_scope
Guard.setup_scope(@saved_scope)
::Guard.setup_scope(@saved_scope)
end

attr_reader :watchdirs
Expand All @@ -109,7 +109,7 @@ def setup_scope(scope = {})
scope = _prepare_scope(scope)
{ groups: :add_group, plugins: :plugin }.each do |type, meth|
next unless scope[type].any?
Guard.scope[type] = scope[type].map do |item|
::Guard.scope[type] = scope[type].map do |item|
::Guard.send(meth, item)
end
end
Expand Down

0 comments on commit 35ecd2d

Please sign in to comment.