Sha256: fdaf21e909039076171308ac1cdf36a996dedc9f1644e8c311e20dc0834a8afe
Contents?: true
Size: 605 Bytes
Versions: 115
Compression:
Stored size: 605 Bytes
Contents
directories(%w(. lib spec)). select { |d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist") } guard :rspec, cmd: "bundle exec rspec" do require "guard/rspec/dsl" dsl = Guard::RSpec::Dsl.new(self) # Feel free to open issues for suggestions and improvements # RSpec files rspec = dsl.rspec watch(rspec.spec_helper) { rspec.spec_dir } watch(rspec.spec_support) { rspec.spec_dir } watch(rspec.spec_files) # Ruby files ruby = dsl.ruby dsl.watch_spec_files_for(ruby.lib_files) # Run all specs if any lib file changes. watch(ruby.lib_files) { rspec.spec_dir } end
Version data entries
115 entries across 114 versions & 3 rubygems