summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-05-26 17:14:29 -0600
committermo khan <mo@mokhan.ca>2014-05-26 17:14:29 -0600
commitd0650177f46ebce1f8f3ab97956bd1c105db4b1d (patch)
treeb386a9660e77ade935b922c4925873f322ad4b9c
parente0aa25861d21e9721f47242ac6aca2047dc6c827 (diff)
install guard-rspec.
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock31
-rw-r--r--Guardfile9
-rw-r--r--spec/lib/customer_spec.rb (renamed from spec/integration/customer_spec.rb)0
-rw-r--r--spec/spec_helper.rb1
5 files changed, 42 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 4a05f85..96aa6f3 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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