diff options
| -rw-r--r-- | Gemfile | 1 | ||||
| -rw-r--r-- | Gemfile.lock | 31 | ||||
| -rw-r--r-- | Guardfile | 9 | ||||
| -rw-r--r-- | spec/lib/customer_spec.rb (renamed from spec/integration/customer_spec.rb) | 0 | ||||
| -rw-r--r-- | spec/spec_helper.rb | 1 |
5 files changed, 42 insertions, 0 deletions
@@ -1,3 +1,4 @@ source "https://rubygems.org" gem "rspec" +gem 'guard-rspec' diff --git a/Gemfile.lock b/Gemfile.lock index b3a6705..8828801 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,34 @@ GEM remote: https://rubygems.org/ specs: + celluloid (0.15.2) + timers (~> 1.1.0) + coderay (1.1.0) diff-lcs (1.2.5) + ffi (1.9.3) + formatador (0.2.5) + guard (2.6.1) + formatador (>= 0.2.4) + listen (~> 2.7) + lumberjack (~> 1.0) + pry (>= 0.9.12) + thor (>= 0.18.1) + guard-rspec (4.2.9) + guard (~> 2.1) + rspec (>= 2.14, < 4.0) + listen (2.7.5) + celluloid (>= 0.15.2) + rb-fsevent (>= 0.9.3) + rb-inotify (>= 0.9) + lumberjack (1.0.5) + method_source (0.8.2) + pry (0.9.12.6) + coderay (~> 1.0) + method_source (~> 0.8) + slop (~> 3.4) + rb-fsevent (0.9.4) + rb-inotify (0.9.4) + ffi (>= 0.5.0) rspec (2.14.1) rspec-core (~> 2.14.0) rspec-expectations (~> 2.14.0) @@ -10,9 +37,13 @@ GEM rspec-expectations (2.14.5) diff-lcs (>= 1.1.3, < 2.0) rspec-mocks (2.14.6) + slop (3.5.0) + thor (0.19.1) + timers (1.1.0) PLATFORMS ruby DEPENDENCIES + guard-rspec rspec diff --git a/Guardfile b/Guardfile new file mode 100644 index 0000000..4a001eb --- /dev/null +++ b/Guardfile @@ -0,0 +1,9 @@ +# A sample Guardfile +# More info at https://github.com/guard/guard#readme + +guard :rspec, cmd: 'bundle exec rspec' do + watch(%r{^spec/.+_spec\.rb$}) + watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } + watch('spec/spec_helper.rb') { "spec" } +end + diff --git a/spec/integration/customer_spec.rb b/spec/lib/customer_spec.rb index 81761f5..81761f5 100644 --- a/spec/integration/customer_spec.rb +++ b/spec/lib/customer_spec.rb diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index bc7d4ff..1525ace 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,6 +7,7 @@ require 'movie' require 'rental' require 'customer' + RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true |
