Skip to content

Commit

Permalink
Merge pull request guard#45 from statianzo/guard-1.1
Browse files Browse the repository at this point in the history
Guard 1.1 compatibility
  • Loading branch information
rymai committed Dec 10, 2012
2 parents 077cf29 + 91267e2 commit 766b9f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion guard-minitest.gemspec
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = '>= 1.3.6'
s.rubyforge_project = 'guard-minitest'

s.add_dependency 'guard', '~> 1.0'
s.add_dependency 'guard', '~> 1.1'

s.add_development_dependency 'rake'
s.add_development_dependency 'minitest', '~> 2.1'
Expand Down
2 changes: 1 addition & 1 deletion lib/guard/minitest.rb
Expand Up @@ -33,7 +33,7 @@ def run_all
true
end

def run_on_change(paths = [])
def run_on_changes(paths = [])
paths = @inspector.clean(paths)
return @runner.run(paths) unless paths.empty?
true
Expand Down
4 changes: 2 additions & 2 deletions spec/guard/minitest_spec.rb
Expand Up @@ -66,12 +66,12 @@

end

describe 'run_on_change' do
describe 'run_on_changes' do

it 'should run minitest in paths' do
inspector.stubs(:clean).with(['test/guard/minitest/test_inspector.rb']).returns(['test/guard/minitest/test_inspector.rb'])
runner.expects(:run).with(['test/guard/minitest/test_inspector.rb']).returns(true)
guard.run_on_change(['test/guard/minitest/test_inspector.rb']).must_equal true
guard.run_on_changes(['test/guard/minitest/test_inspector.rb']).must_equal true
end

end
Expand Down

0 comments on commit 766b9f7

Please sign in to comment.