forked from topofocus/ib-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hartmut Bischoff
committed
Dec 24, 2014
1 parent
a2d92b1
commit ba6b81d
Showing
5 changed files
with
146 additions
and
180 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# A sample Guardfile | ||
# More info at https://github.com/guard/guard#readme | ||
|
||
guard :rspec, cmd: "bundle exec rspec" do | ||
require "ostruct" | ||
|
||
# Generic Ruby apps | ||
rspec = OpenStruct.new | ||
rspec.spec = ->(m) { "spec/#{m}_spec.rb" } | ||
rspec.spec_dir = "spec" | ||
rspec.spec_helper = "spec/spec_helper.rb" | ||
|
||
# watch(%r{^spec/.+_spec\.rb$}) | ||
# watch(%r{^lib/(.+)\.rb$}) { |m| rspec.spec.("lib/#{m[1]}") } | ||
# watch(rspec.spec_helper) { rspec.spec_dir } | ||
# | ||
|
||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { "spec" } | ||
|
||
watch(%r{^models/(.+)\.rb$}) { |m| "spec/models/#{m[1]}_spec.rb" } | ||
watch(%r{^spec/support/(.+)\.rb$}) { "spec" } | ||
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