Sha256: ee4e06dd73db0a0be0651774d90780dacee777f4f7f80e32d4f5ad7cc8e52f96
Contents?: true
Size: 789 Bytes
Versions: 1
Compression:
Stored size: 789 Bytes
Contents
# Touching any of these files should cause the entire test suite to reload. GLOBAL_SPEC_FILES = [ ".rspec", %r{^spec/.*_helper\.rb$}, %r{^spec/common/.*\.rb$}, ] def specs_for_path(path) ["spec/unit/#{path}_spec.rb", Dir["spec/unit/#{path}/**/*_spec.rb"]].flatten end guard "bundler" do watch("Gemfile") watch(/^.+\.gemspec/) end guard "spork", rspec_port: 2733 do watch("Gemfile") watch("Gemfile.lock") GLOBAL_SPEC_FILES.each do |pattern| watch(pattern) { :rspec } end end guard "rspec", cli: "--drb --drb-port 2733" do watch("lib/cli_forge.rb") { "spec" } watch("lib/cli_forge/autoload_convention.rb") { "spec" } watch(%r{^spec/fixtures/.*\.rb$}) { "spec" } watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { |m| specs_for_path(m[1]) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cli-forge-0.1.0 | Guardfile |