Sha256: d71fd04c3ea8c03537fe14f0b0d2c79dfe66f1c8004889b06f6c445ff8dad27b
Contents?: true
Size: 719 Bytes
Versions: 11
Compression:
Stored size: 719 Bytes
Contents
# encoding: utf-8 ENV['GUARD'] = '1' guard :bundler do watch('Gemfile') end guard :rspec, :all_on_start => false, :all_after_pass => false, :cmd => 'bundle exec rspec --fail-fast --seed 1' do # run all specs if the spec_helper or supporting files files are modified watch('spec/spec_helper.rb') { 'spec/unit' } watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec/unit' } # run unit specs if associated lib code is modified watch(%r{\Alib/(.+)\.rb\z}) { 'spec' } 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
11 entries across 11 versions & 1 rubygems