Sha256: 791d17437d4a59f216250ce6158c5e8e266881356a691d39feb36f0b07758d2b
Contents?: true
Size: 648 Bytes
Versions: 10
Compression:
Stored size: 648 Bytes
Contents
# encoding: utf-8 guard :bundler do watch('Gemfile') end guard :rspec, :version => 2 do # run all specs if the spec_helper or supporting files files are modified watch('spec/spec_helper.rb') { 'spec' } watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec' } # run unit specs if associated lib code is modified watch(%r{\Alib/(.+)\.rb\z}) { |m| Dir["spec/unit/#{m[1]}"] } watch("lib/#{File.basename(File.expand_path('../', __FILE__))}.rb") { 'spec' } # run a spec if it is modified watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z}) end
Version data entries
10 entries across 10 versions & 1 rubygems