summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-02-11 14:47:09 -0700
committermo k <mo@mokhan.ca>2012-02-11 14:47:09 -0700
commit98d129ab8fa49b84b9e1d58361368bbdc8d20aac (patch)
tree40fda51fef7308e824084eb9223292e6cdae46e6
parent93957df3be4e4206389a41040299453842d2b5f4 (diff)
move specs from test/ to spec/
-rw-r--r--Gemfile.lock8
-rw-r--r--Guardfile13
-rw-r--r--gemfile6
-rw-r--r--rakefile2
-rw-r--r--spec/book_specs.rb (renamed from test/book_specs.rb)0
-rw-r--r--spec/library_specs.rb (renamed from test/library_specs.rb)0
-rw-r--r--spec/rover_specs.rb (renamed from test/rover_specs.rb)0
-rw-r--r--spec/spec_helper.rb (renamed from test/spec_helper.rb)0
-rw-r--r--spec/specifications/find_all_books_by_author_specs.rb (renamed from test/specifications/find_all_books_by_author_specs.rb)0
-rw-r--r--spec/stack_specs.rb (renamed from test/stack_specs.rb)0
-rw-r--r--spec/ts_all.rb (renamed from test/ts_all.rb)0
11 files changed, 19 insertions, 10 deletions
diff --git a/Gemfile.lock b/Gemfile.lock
index 888ef1f..f53a82a 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -2,17 +2,9 @@ GEM
remote: https://rubygems.org/
specs:
developwithpassion_fakes (0.0.1)
- ffi (1.0.11)
- guard (0.10.0)
- ffi (>= 0.5.0)
- thor (~> 0.14.6)
- guard-minitest (0.4.0)
- guard (~> 0.4)
- thor (0.14.6)
PLATFORMS
ruby
DEPENDENCIES
developwithpassion_fakes
- guard-minitest
diff --git a/Guardfile b/Guardfile
new file mode 100644
index 0000000..fb18f18
--- /dev/null
+++ b/Guardfile
@@ -0,0 +1,13 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+#guard 'minitest' do
+ #watch(%r|^test/test_(.*)\.rb|)
+ #watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
+ #watch(%r|^test/test_helper\.rb|) { "test" }
+#end
+guard 'minitest' do
+ watch(%r|^spec/(.*)_spec\.rb|)
+ watch(%r|^lib/(.*)\.rb|) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r|^spec/spec_helper\.rb|) { "spec" }
+end
diff --git a/gemfile b/gemfile
index 88ed022..ccdc63c 100644
--- a/gemfile
+++ b/gemfile
@@ -1,4 +1,8 @@
source 'https://rubygems.org'
-gem 'guard-minitest'
+#gem 'guard'
+#gem 'guard-minitest'
+#gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
+#gem 'growl', :require => false if RUBY_PLATFORM =~ /darwin/i
+#gem 'growl_notify', :require => false if RUBY_PLATFORM =~ /darwin/i
gem 'developwithpassion_fakes'
diff --git a/rakefile b/rakefile
index 732dbc3..49ee408 100644
--- a/rakefile
+++ b/rakefile
@@ -1,5 +1,5 @@
task :test do
- sh "ruby -I lib:test test/ts_all.rb"
+ sh "ruby -I lib:spec spec/ts_all.rb"
end
task :default => :test do
diff --git a/test/book_specs.rb b/spec/book_specs.rb
index c1ad6a6..c1ad6a6 100644
--- a/test/book_specs.rb
+++ b/spec/book_specs.rb
diff --git a/test/library_specs.rb b/spec/library_specs.rb
index c231101..c231101 100644
--- a/test/library_specs.rb
+++ b/spec/library_specs.rb
diff --git a/test/rover_specs.rb b/spec/rover_specs.rb
index 0d25d6e..0d25d6e 100644
--- a/test/rover_specs.rb
+++ b/spec/rover_specs.rb
diff --git a/test/spec_helper.rb b/spec/spec_helper.rb
index 638274e..638274e 100644
--- a/test/spec_helper.rb
+++ b/spec/spec_helper.rb
diff --git a/test/specifications/find_all_books_by_author_specs.rb b/spec/specifications/find_all_books_by_author_specs.rb
index 0252104..0252104 100644
--- a/test/specifications/find_all_books_by_author_specs.rb
+++ b/spec/specifications/find_all_books_by_author_specs.rb
diff --git a/test/stack_specs.rb b/spec/stack_specs.rb
index 48e4b52..48e4b52 100644
--- a/test/stack_specs.rb
+++ b/spec/stack_specs.rb
diff --git a/test/ts_all.rb b/spec/ts_all.rb
index 9bf43ab..9bf43ab 100644
--- a/test/ts_all.rb
+++ b/spec/ts_all.rb