thincloud-test 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/thincloud/test/templates/Guardfile +8 -8
- data/lib/generators/thincloud/test/templates/{spec_helper.rb → minitest_helper.rb} +2 -2
- data/lib/generators/thincloud/test/templates/test.rake +10 -0
- data/lib/generators/thincloud/test/test_generator.rb +8 -8
- data/lib/thincloud-test/version.rb +1 -1
- metadata +4 -4
- data/lib/generators/thincloud/test/templates/spec.rake +0 -10
@@ -3,15 +3,15 @@
|
|
3
3
|
|
4
4
|
guard "minitest" do
|
5
5
|
# with Minitest::Spec
|
6
|
-
watch(%r|^
|
7
|
-
watch(%r|^lib/(.*)([^/]+)\.rb|)
|
8
|
-
watch(%r|^
|
9
|
-
watch(%r|^
|
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| "
|
13
|
-
watch(%r|^app/mailers/(.*)\.rb|) { |m| "
|
14
|
-
watch(%r|^app/helpers/(.*)\.rb|) { |m| "
|
15
|
-
watch(%r|^app/models/(.*)\.rb|) { |m| "
|
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 "
|
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("./
|
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.
|
@@ -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 "
|
27
|
-
empty_directory "
|
28
|
-
empty_directory "
|
29
|
-
empty_directory "
|
30
|
-
empty_directory "
|
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
|
32
|
+
run "touch test/{models,controllers,mailers,helpers,support}/.gitkeep"
|
33
33
|
|
34
|
-
copy_file "
|
34
|
+
copy_file "minitest_helper.rb", "test/minitest_helper.rb"
|
35
35
|
|
36
|
-
copy_file "
|
36
|
+
copy_file "test.rake", "lib/tasks/test.rake"
|
37
37
|
|
38
38
|
copy_file "Guardfile"
|
39
39
|
|
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.
|
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
|
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/
|
30
|
-
- lib/generators/thincloud/test/templates/
|
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
|