-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving meta-cookbooks/cluster_chef specs into their own deal
- Loading branch information
Philip (flip) Kromer
committed
Dec 7, 2011
1 parent
c20bdb0
commit 470440e
Showing
17 changed files
with
703 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,10 @@ a.out | |
*/.bzr/* | ||
*/.hg/* | ||
*/.svn/* | ||
|
||
## Don't send rspecs up in cookbook | ||
.watchr | ||
.rspec | ||
spec/* | ||
spec/fixtures/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--color | ||
--format documentation | ||
--drb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- ruby -*- | ||
|
||
def run_spec(file) | ||
unless File.exist?(file) | ||
Watchr.debug "#{file} does not exist" | ||
return | ||
end | ||
|
||
Watchr.debug "Running #{file}" | ||
system "rspec #{file}" | ||
end | ||
|
||
watch("spec/.*_spec\.rb") do |match| | ||
run_spec match[0] | ||
end | ||
|
||
watch("libraries/(.*)\.rb") do |match| | ||
file = %{spec/#{match[1]}_spec.rb} | ||
run_spec file if File.exists?(file) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
source "http://rubygems.org" | ||
|
||
gem 'chef', "~> 0.10.4" | ||
|
||
# Add dependencies to develop your gem here. | ||
# Include everything needed to run rake, tests, features, etc. | ||
group :development do | ||
gem 'bundler', "~> 1" | ||
gem 'yard', "~> 0.6.7" | ||
gem 'jeweler', "~> 1.6.4" | ||
gem 'rspec', "~> 2.7.0" | ||
gem 'watchr', "~> 0.7" | ||
# gem 'ruby-fsevent', "~> 0.2" | ||
# gem 'rev' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.