Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d19fb7d

Browse files
author
Michael Bleigh
committedSep 2, 2011
Switch to Guard for autotesting.
1 parent 2d36017 commit d19fb7d

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed
 

‎.rspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
--color
2-
--format=nested
2+
--format=progress

‎Gemfile.lock

+11-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ PATH
1111
GEM
1212
remote: http://rubygems.org/
1313
specs:
14-
ZenTest (4.5.0)
1514
diff-lcs (1.1.2)
15+
guard (0.6.2)
16+
thor (~> 0.14.6)
17+
guard-bundler (0.1.3)
18+
bundler (>= 1.0.0)
19+
guard (>= 0.2.2)
20+
guard-rspec (0.4.2)
21+
guard (>= 0.4.0)
1622
json_pure (1.5.2)
1723
maruku (0.6.0)
1824
syntax (>= 1.0.0)
@@ -35,15 +41,18 @@ GEM
3541
diff-lcs (~> 1.1.2)
3642
rspec-mocks (2.6.0)
3743
syntax (1.0.0)
44+
thor (0.14.6)
3845
yard (0.7.1)
3946

4047
PLATFORMS
4148
ruby
4249

4350
DEPENDENCIES
44-
ZenTest
4551
bundler
4652
grape!
53+
guard
54+
guard-bundler
55+
guard-rspec
4756
json_pure
4857
maruku
4958
rack-test

‎Guardfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
3+
4+
guard 'rspec', :version => 2 do
5+
watch(%r{^spec/.+_spec\.rb$})
6+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
7+
watch('spec/spec_helper.rb') { "spec/" }
8+
end
9+
10+
11+
guard 'bundler' do
12+
watch('Gemfile')
13+
watch(/^.+\.gemspec/)
14+
end

‎grape.gemspec

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ Gem::Specification.new do |s|
2525
s.add_development_dependency 'rack-test'
2626
s.add_development_dependency 'rspec', '~> 2.6.0'
2727
s.add_development_dependency 'json_pure'
28-
s.add_development_dependency 'ZenTest'
2928
s.add_development_dependency 'bundler'
29+
s.add_development_dependency 'guard'
30+
s.add_development_dependency 'guard-rspec'
31+
s.add_development_dependency 'guard-bundler'
3032

3133
s.files = `git ls-files`.split("\n")
3234
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")

0 commit comments

Comments
 (0)
Please sign in to comment.