thincloud-test 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,15 +3,15 @@
3
3
 
4
4
  guard "minitest" do
5
5
  # with Minitest::Spec
6
- watch(%r|^spec/(.*)_spec\.rb|)
7
- watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
8
- watch(%r|^spec/spec_helper\.rb|) { "spec" }
9
- watch(%r|^spec/support/|) { "spec" }
6
+ watch(%r|^test/(.*)_test\.rb|)
7
+ watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}#{m[2]}_test.rb" }
8
+ watch(%r|^test/minitest_helper\.rb|) { "test" }
9
+ watch(%r|^test/support/|) { "test" }
10
10
 
11
11
  # Rails 3.2
12
- watch(%r|^app/controllers/(.*)\.rb|) { |m| "spec/controllers/#{m[1]}_spec.rb" }
13
- watch(%r|^app/mailers/(.*)\.rb|) { |m| "spec/mailers/#{m[1]}_spec.rb" }
14
- watch(%r|^app/helpers/(.*)\.rb|) { |m| "spec/helpers/#{m[1]}_spec.rb" }
15
- watch(%r|^app/models/(.*)\.rb|) { |m| "spec/models/#{m[1]}_spec.rb" }
12
+ watch(%r|^app/controllers/(.*)\.rb|) { |m| "test/controllers/#{m[1]}_test.rb" }
13
+ watch(%r|^app/mailers/(.*)\.rb|) { |m| "test/mailers/#{m[1]}_test.rb" }
14
+ watch(%r|^app/helpers/(.*)\.rb|) { |m| "test/helpers/#{m[1]}_test.rb" }
15
+ watch(%r|^app/models/(.*)\.rb|) { |m| "test/models/#{m[1]}_test.rb" }
16
16
  end
17
17
 
@@ -1,5 +1,5 @@
1
1
  require "simplecov"
2
- SimpleCov.add_filter "spec"
2
+ SimpleCov.add_filter "test"
3
3
  SimpleCov.add_filter "config"
4
4
  SimpleCov.command_name "MiniTest"
5
5
  SimpleCov.start
@@ -18,7 +18,7 @@ require "mocha"
18
18
 
19
19
  # Requires supporting ruby files with custom matchers and macros, etc,
20
20
  # in spec/support/ and its subdirectories.
21
- Dir[File.join("./spec/support/**/*.rb")].sort.each { |f| require f }
21
+ Dir[File.join("./test/support/**/*.rb")].sort.each { |f| require f }
22
22
 
23
23
  class MiniTest::Rails::ActiveSupport::TestCase
24
24
  # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
@@ -0,0 +1,10 @@
1
+ require "rake/testtask"
2
+
3
+ task default: :test
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << "lib"
7
+ t.libs << "test"
8
+ t.pattern = "test/**/*_test.rb"
9
+ t.verbose = false
10
+ end
@@ -23,17 +23,17 @@ module Thincloud
23
23
  "config.generators { |g| g.test_framework :mini_test, spec: true, fixture: false }"
24
24
  end
25
25
 
26
- empty_directory "spec/models"
27
- empty_directory "spec/controllers"
28
- empty_directory "spec/mailers"
29
- empty_directory "spec/helpers"
30
- empty_directory "spec/support"
26
+ empty_directory "test/models"
27
+ empty_directory "test/controllers"
28
+ empty_directory "test/mailers"
29
+ empty_directory "test/helpers"
30
+ empty_directory "test/support"
31
31
 
32
- run "touch spec/{models,controllers,mailers,helpers,support}/.gitkeep"
32
+ run "touch test/{models,controllers,mailers,helpers,support}/.gitkeep"
33
33
 
34
- copy_file "spec_helper.rb", "spec/spec_helper.rb"
34
+ copy_file "minitest_helper.rb", "test/minitest_helper.rb"
35
35
 
36
- copy_file "spec.rake", "lib/tasks/spec.rake"
36
+ copy_file "test.rake", "lib/tasks/test.rake"
37
37
 
38
38
  copy_file "Guardfile"
39
39
 
@@ -1,5 +1,5 @@
1
1
  module Thincloud
2
2
  module Test
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thincloud-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-22 00:00:00.000000000 Z
13
+ date: 2012-09-08 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Test harness generator for new Thincloud apps.
16
16
  email:
@@ -26,8 +26,8 @@ files:
26
26
  - README.md
27
27
  - Rakefile
28
28
  - lib/generators/thincloud/test/templates/Guardfile
29
- - lib/generators/thincloud/test/templates/spec.rake
30
- - lib/generators/thincloud/test/templates/spec_helper.rb
29
+ - lib/generators/thincloud/test/templates/minitest_helper.rb
30
+ - lib/generators/thincloud/test/templates/test.rake
31
31
  - lib/generators/thincloud/test/test_generator.rb
32
32
  - lib/thincloud-test.rb
33
33
  - lib/thincloud-test/version.rb
@@ -1,10 +0,0 @@
1
- require "rake/testtask"
2
-
3
- task default: :spec
4
-
5
- Rake::TestTask.new(:spec) do |t|
6
- t.libs << "lib"
7
- t.libs << "spec"
8
- t.pattern = "spec/**/*_spec.rb"
9
- t.verbose = false
10
- end