thincloud-test 0.8.0 → 1.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/Gemfile +1 -2
  2. data/LICENSE +1 -1
  3. data/README.md +32 -12
  4. data/Rakefile +8 -27
  5. data/bin/thincloud-testify +5 -0
  6. data/lib/thincloud-test.rb +1 -9
  7. data/lib/thincloud/test.rb +2 -2
  8. data/lib/{generators/thincloud → thincloud}/test/templates/Guardfile +0 -0
  9. data/lib/thincloud/test/templates/ci/before_script.sh +6 -0
  10. data/lib/thincloud/test/templates/ci/ci_runner.sh +8 -0
  11. data/lib/thincloud/test/templates/ci/travis.yml +12 -0
  12. data/lib/{generators/thincloud → thincloud}/test/templates/minitest_helper.rb +6 -10
  13. data/lib/thincloud/test/templates/support/minitest_reporters.rb +4 -0
  14. data/lib/thincloud/test/templates/support/mocha.rb +1 -0
  15. data/lib/{generators/thincloud → thincloud}/test/templates/test.rake +0 -0
  16. data/lib/thincloud/test/test_generator.rb +54 -0
  17. data/lib/thincloud/test/version.rb +1 -1
  18. data/test/test_helper.rb +2 -15
  19. data/test/thincloud-test_test.rb +3 -5
  20. data/thincloud-test.gemspec +14 -18
  21. metadata +37 -212
  22. data/lib/generators/thincloud/test/templates/capybara.rb +0 -10
  23. data/lib/generators/thincloud/test/templates/database_cleaner.rb +0 -12
  24. data/lib/generators/thincloud/test/templates/factory_girl.rb +0 -4
  25. data/lib/generators/thincloud/test/templates/minitest.rb +0 -11
  26. data/lib/generators/thincloud/test/templates/routing_spec.rb +0 -12
  27. data/lib/generators/thincloud/test/test_generator.rb +0 -36
  28. data/lib/tasks/thincloud-test_tasks.rake +0 -4
  29. data/lib/thincloud/test/railtie.rb +0 -13
  30. data/test/dummy/.gitignore +0 -1
  31. data/test/dummy/Guardfile +0 -17
  32. data/test/dummy/README.rdoc +0 -261
  33. data/test/dummy/Rakefile +0 -7
  34. data/test/dummy/app/assets/javascripts/application.js +0 -15
  35. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  36. data/test/dummy/app/controllers/application_controller.rb +0 -3
  37. data/test/dummy/app/helpers/application_helper.rb +0 -2
  38. data/test/dummy/app/mailers/.gitkeep +0 -0
  39. data/test/dummy/app/models/.gitkeep +0 -0
  40. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  41. data/test/dummy/config.ru +0 -4
  42. data/test/dummy/config/application.rb +0 -59
  43. data/test/dummy/config/boot.rb +0 -10
  44. data/test/dummy/config/database.yml +0 -25
  45. data/test/dummy/config/environment.rb +0 -5
  46. data/test/dummy/config/environments/development.rb +0 -37
  47. data/test/dummy/config/environments/production.rb +0 -67
  48. data/test/dummy/config/environments/test.rb +0 -37
  49. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  50. data/test/dummy/config/initializers/inflections.rb +0 -15
  51. data/test/dummy/config/initializers/mime_types.rb +0 -5
  52. data/test/dummy/config/initializers/secret_token.rb +0 -7
  53. data/test/dummy/config/initializers/session_store.rb +0 -8
  54. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  55. data/test/dummy/config/locales/en.yml +0 -5
  56. data/test/dummy/config/routes.rb +0 -58
  57. data/test/dummy/lib/assets/.gitkeep +0 -0
  58. data/test/dummy/lib/tasks/test.rake +0 -10
  59. data/test/dummy/log/.gitkeep +0 -0
  60. data/test/dummy/public/404.html +0 -26
  61. data/test/dummy/public/422.html +0 -26
  62. data/test/dummy/public/500.html +0 -25
  63. data/test/dummy/public/favicon.ico +0 -0
  64. data/test/dummy/script/rails +0 -6
  65. data/test/dummy/test/factories/.gitkeep +0 -0
  66. data/test/dummy/test/minitest_helper.rb +0 -36
  67. data/test/integration/navigation_test.rb +0 -10
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in thincloud-test.gemspec
4
3
  gemspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 New Leaders
1
+ Copyright (c) 2012-2013 New Leaders
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,14 +1,24 @@
1
- # Thincloud::Test
1
+ # thincloud-test [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/newleaders/thincloud-test)
2
2
 
3
3
  ## Description
4
4
 
5
- Rails testing engine and configuration generator for Thincloud apps.
5
+ Opinionated testing framework dependencies and configuration for Ruby applications.
6
6
 
7
- ## Requirements
7
+ [New Leaders](https://newleaders.com) uses this gem to manage the following dependencies:
8
+
9
+ * [cane](https://github.com/square/cane)
10
+ * [guard](https://github.com/guard/guard)
11
+ * [guard-minitest](https://github.com/guard/guard-minitest)
12
+ * [minitest](https://github.com/seattlerb/minitest)
13
+ * [minitest-reporters](https://github.com/CapnKernul/minitest-reporters)
14
+ * [mocha](https://github.com/visionmedia/mocha)
15
+ * [rb-fsevent](https://github.com/thibaudgg/rb-fsevent)
16
+ * [simplecov](https://github.com/colszowka/simplecov)
17
+ * [terminal-notifier-guard](https://github.com/Springest/terminal-notifier-guard)
18
+ * [thor](https://github.com/wycats/thor)
8
19
 
9
- This gem requires Rails 3.2.8+ and has been tested on the following versions:
10
20
 
11
- * 3.2.8
21
+ ## Requirements
12
22
 
13
23
  This gem has been tested against the following Ruby versions:
14
24
 
@@ -37,14 +47,25 @@ $ gem install thincloud-test
37
47
 
38
48
  ## Usage
39
49
 
40
- This engine manages testing dependencies and adds a generator to Rails, `thincloud:test`. Running the generator will run the `minitest-rails` generator and add application configuration files:
50
+ The gem manages the test framework dependencies for you and provides a command to bootstrap a test environment.
51
+
52
+ The goal of `thincloud-test` is to be minimal by default but provide additional capabilities by following simple conventions.
53
+
54
+ If you just want to get started using `minitest`:
41
55
 
42
- * Invoke the generator:
56
+ ```ruby
57
+ require "thincloud/test"
58
+ ```
59
+
60
+ To enable the default New Leaders conventions, run the following command:
43
61
 
44
62
  ```
45
- $ rails generate thincloud:test
63
+ $ thincloud-testify
46
64
  ```
47
65
 
66
+ This will bootstrap your project with a `test/` directory, a `minitest_helper.rb` with some default configuration, a `test/support/` directory with configuration for `mocha`, custom minitest formatters, a `Guardfile`, a default Travis CI configuration, and more! :tada: :balloon:
67
+
68
+
48
69
  ## Contributing
49
70
 
50
71
  1. [Fork it](https://github.com/newleaders/thincloud-test/fork_select)
@@ -56,7 +77,6 @@ $ rails generate thincloud:test
56
77
 
57
78
  ## License
58
79
 
59
- * Freely distributable and licensed under the MIT-style license. See LICENSE file for details.
60
- * Copyright (c) 2012 New Leaders
61
- * https://newleaders.com
62
-
80
+ * Freely distributable and licensed under the [MIT license](http://newleaders.mit-license.org/2012-2013/license.html).
81
+ * Copyright (c) 2012-2013 New Leaders ([opensource@newleaders.com](opensource@newleaders.com))
82
+ * [https://newleaders.com](https://newleaders.com)
data/Rakefile CHANGED
@@ -1,40 +1,21 @@
1
1
  #!/usr/bin/env rake
2
2
  begin
3
- require 'bundler/setup'
3
+ require "bundler/setup"
4
4
  rescue LoadError
5
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ puts "You must `gem install bundler` and `bundle install` to run rake tasks"
6
6
  end
7
- begin
8
- require 'rdoc/task'
9
- rescue LoadError
10
- require 'rdoc/rdoc'
11
- require 'rake/rdoctask'
12
- RDoc::Task = Rake::RDocTask
13
- end
14
-
15
- RDoc::Task.new(:rdoc) do |rdoc|
16
- rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = 'Thincloud::Test'
18
- rdoc.options << '--line-numbers'
19
- rdoc.rdoc_files.include('README.rdoc')
20
- rdoc.rdoc_files.include('lib/**/*.rb')
21
- end
22
-
23
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
- load 'rails/tasks/engine.rake'
25
-
26
-
27
7
 
8
+ require "bundler/gem_helper"
28
9
  Bundler::GemHelper.install_tasks
29
10
 
30
- require 'rake/testtask'
11
+ require "rake/testtask"
31
12
 
32
13
  Rake::TestTask.new(:test) do |t|
33
- t.libs << 'lib'
34
- t.libs << 'test'
35
- t.pattern = 'test/**/*_test.rb'
14
+ t.libs << "lib"
15
+ t.libs << "test"
16
+ t.pattern = "test/**/*_test.rb"
36
17
  t.verbose = false
37
18
  end
38
19
 
39
20
 
40
- task :default => :test
21
+ task default: :test
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "thincloud/test/test_generator"
4
+
5
+ Thincloud::Test::TestGenerator.new.testify!
@@ -1,12 +1,4 @@
1
- require "database_cleaner" # reset database on each test run
2
- require "minitest/autorun"
3
- require "minitest/rails"
4
- require "minitest/pride" # Provides awesome colorful output
5
- require "minitest-rails-shoulda"
6
-
7
- require "thincloud/test"
8
- require "mocha/setup"
9
- require "factory_girl"
1
+ require "thincloud/test/version"
10
2
 
11
3
  module Thincloud
12
4
  module Test
@@ -1,2 +1,2 @@
1
- require "thincloud/test/version"
2
- require "thincloud/test/railtie"
1
+ require "minitest/autorun"
2
+ require "minitest/pride" # Provides awesome colorful output
@@ -0,0 +1,6 @@
1
+ # Add instructions to execute before your CI run here.
2
+ #
3
+ # The following is used for testing a Rails Engine with a dummy test app.
4
+ #
5
+ # cd test/dummy
6
+ # RAILS_ENV=test bundle exec rake db:setup
@@ -0,0 +1,8 @@
1
+ engine=$(ruby -e 'puts RUBY_ENGINE')
2
+
3
+ case $engine in
4
+ "ruby" )
5
+ bundle exec rake test && bundle exec cane;;
6
+ * )
7
+ bundle exec rake test;;
8
+ esac
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - jruby-19mode
6
+ - rbx-19mode
7
+ env:
8
+ - CI=true RAILS_ENV=test JRUBY_OPTS=--1.9 RBXOPT=-X19
9
+ before_script: "./test/ci/before_script.sh"
10
+ script: "./test/ci/ci_runner.sh"
11
+ notifications:
12
+ flowdock: 1ec5c0efa5a264c67c6ba3b2e6574a70
@@ -1,22 +1,18 @@
1
1
  if RUBY_ENGINE == "ruby"
2
2
  begin
3
3
  require "simplecov"
4
- SimpleCov.add_filter "test"
5
- SimpleCov.add_filter "config"
6
- SimpleCov.command_name "MiniTest"
7
- SimpleCov.start "rails"
4
+ SimpleCov.start do
5
+ add_filter "test"
6
+ add_filter "config"
7
+ command_name "MiniTest"
8
+ end
8
9
  rescue LoadError
9
10
  warn "unable to load SimpleCov"
10
11
  end
11
12
  end
12
13
 
13
- ENV["RAILS_ENV"] = "test"
14
- require File.expand_path("../../config/environment", __FILE__)
15
-
16
- require "thincloud-test"
14
+ require "thincloud/test"
17
15
 
18
16
  # Requires supporting ruby files with custom matchers and macros, etc,
19
17
  # in spec/support/ and its subdirectories.
20
18
  Dir[File.join("./test/support/**/*.rb")].sort.each { |f| require f }
21
-
22
- MiniTest::Rails.override_testunit!
@@ -0,0 +1,4 @@
1
+ unless ENV["CI"]
2
+ require "minitest/reporters"
3
+ MiniTest::Reporters.use! MiniTest::Reporters::ProgressReporter.new
4
+ end
@@ -0,0 +1 @@
1
+ require "mocha/setup"
@@ -0,0 +1,54 @@
1
+ require "thor"
2
+
3
+ module Thincloud
4
+ module Test
5
+ class TestGenerator < ::Thor::Group
6
+ include ::Thor::Actions
7
+
8
+ source_root File.expand_path("../templates", __FILE__)
9
+
10
+ desc "Generates thincloud test infrastructure outside of Rails"
11
+ def testify!(opts = {})
12
+ setup_minitest if opts.fetch(:minitest, true)
13
+
14
+ copy_file "support/minitest_reporters.rb",
15
+ "test/support/minitest_reporters.rb"
16
+
17
+ copy_file "support/mocha.rb", "test/support/mocha.rb"
18
+
19
+ copy_file "test.rake", "lib/tasks/test.rake"
20
+
21
+ copy_file "Guardfile"
22
+
23
+ setup_ci
24
+
25
+ update_gitignore
26
+
27
+ say_status "", ""
28
+ say_status "success", "thincloud-test has finished."
29
+ say_status "", "Customize .travis.yml and test/ci/* for your project."
30
+ end
31
+
32
+
33
+ private
34
+
35
+ def update_gitignore
36
+ create_file ".gitignore" unless File.exist?(".gitignore")
37
+ append_file ".gitignore", "coverage"
38
+ end
39
+
40
+ def setup_ci
41
+ empty_directory "test/ci"
42
+ copy_file "ci/before_script.sh", "test/ci/before_script.sh"
43
+ copy_file "ci/ci_runner.sh", "test/ci/ci_runner.sh"
44
+ copy_file "ci/travis.yml", ".travis.yml"
45
+ end
46
+
47
+ def setup_minitest
48
+ remove_file "test/test_helper.rb"
49
+ copy_file "minitest_helper.rb", "test/minitest_helper.rb"
50
+ end
51
+
52
+ end
53
+ end
54
+ end
@@ -1,5 +1,5 @@
1
1
  module Thincloud
2
2
  module Test
3
- VERSION = "0.8.0"
3
+ VERSION = "1.0.0.pre"
4
4
  end
5
5
  end
@@ -1,15 +1,2 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end
1
+ require "minitest/autorun"
2
+ require "minitest/pride"
@@ -1,7 +1,5 @@
1
- require 'test_helper'
1
+ require "test_helper"
2
2
 
3
- class ThincloudTestTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, Thincloud::Test
6
- end
3
+ describe Thincloud::Test do
4
+ it { Thincloud::Test.must_be_kind_of Module }
7
5
  end
@@ -5,8 +5,10 @@ Gem::Specification.new do |s|
5
5
  s.authors = ["Robert Bousquet", "Phil Cohen", "Don Morrison"]
6
6
  s.email = ["rbousquet@newleaders.com", "pcohen@newleaders.com",
7
7
  "dmorrison@newleaders.com"]
8
- s.description = "Test harness generator for new Thincloud apps."
9
- s.summary = "Test harness generator for new Thincloud apps."
8
+ s.description = "Opinionated test dependencies and conventions for " <<
9
+ "Ruby applications."
10
+ s.summary = "Opinionated test dependencies and conventions for " <<
11
+ "Ruby applications."
10
12
  s.homepage = "http://newleaders.github.com/thincloud-test"
11
13
 
12
14
  s.files = `git ls-files`.split($\)
@@ -16,22 +18,16 @@ Gem::Specification.new do |s|
16
18
  s.require_paths = ["lib"]
17
19
  s.version = Thincloud::Test::VERSION
18
20
 
19
- s.add_dependency "rails", "~> 3.2.11"
20
- s.add_dependency "cane", "~> 2.5.0"
21
- s.add_dependency "capybara", "~> 2.0.2"
22
- s.add_dependency "database_cleaner", "~> 0.9.1"
23
- s.add_dependency "guard", "~> 1.6.1"
24
- s.add_dependency "factory_girl_rails", "~> 4.1.0"
25
- s.add_dependency "minitest", "~> 4.5.0"
26
- s.add_dependency "minitest-rails", "~> 0.5.0"
27
- s.add_dependency "guard-minitest", "~> 0.5.0"
28
- s.add_dependency "minitest-rails-shoulda", "~> 0.4.0"
29
- s.add_dependency "rb-fsevent", "~> 0.9.1"
30
- s.add_dependency "simplecov", "~> 0.7.1"
21
+ s.add_dependency "cane", "~> 2.5.2"
22
+ s.add_dependency "guard", "~> 1.6.1"
23
+ s.add_dependency "minitest", "~> 4.5.0"
24
+ s.add_dependency "minitest-reporters", "~> 0.14.7"
25
+ s.add_dependency "guard-minitest", "~> 0.5.0"
26
+ s.add_dependency "rb-fsevent", "~> 0.9.1"
27
+ s.add_dependency "simplecov", "~> 0.7.1"
31
28
  s.add_dependency "terminal-notifier-guard", "~> 1.5.3"
32
- s.add_dependency "mocha", "~> 0.13.2" # Must be after minitest
33
- s.add_dependency "minitest-rails-capybara", "~> 0.5.1"
34
- s.add_dependency "shoulda-matchers", "1.4.1" # 1.4.2 requires mocha 0.10
35
- s.add_dependency "minitest-reporters", "~> 0.14.6"
29
+ s.add_dependency "thor", "~> 0.17.0"
30
+ s.add_dependency "mocha", "~> 0.13.2" # Must be after minitest
36
31
 
32
+ s.add_development_dependency "rake"
37
33
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thincloud-test
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.8.0
4
+ prerelease: 6
5
+ version: 1.0.0.pre
6
6
  platform: ruby
7
7
  authors:
8
8
  - Robert Bousquet
@@ -11,30 +11,14 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-01-25 00:00:00.000000000 Z
14
+ date: 2013-01-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  version_requirements: !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.11
22
- none: false
23
- prerelease: false
24
- name: rails
25
- requirement: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: 3.2.11
30
- none: false
31
- type: :runtime
32
- - !ruby/object:Gem::Dependency
33
- version_requirements: !ruby/object:Gem::Requirement
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: 2.5.0
21
+ version: 2.5.2
38
22
  none: false
39
23
  prerelease: false
40
24
  name: cane
@@ -42,39 +26,7 @@ dependencies:
42
26
  requirements:
43
27
  - - ~>
44
28
  - !ruby/object:Gem::Version
45
- version: 2.5.0
46
- none: false
47
- type: :runtime
48
- - !ruby/object:Gem::Dependency
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 2.0.2
54
- none: false
55
- prerelease: false
56
- name: capybara
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 2.0.2
62
- none: false
63
- type: :runtime
64
- - !ruby/object:Gem::Dependency
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: 0.9.1
70
- none: false
71
- prerelease: false
72
- name: database_cleaner
73
- requirement: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 0.9.1
29
+ version: 2.5.2
78
30
  none: false
79
31
  type: :runtime
80
32
  - !ruby/object:Gem::Dependency
@@ -93,22 +45,6 @@ dependencies:
93
45
  version: 1.6.1
94
46
  none: false
95
47
  type: :runtime
96
- - !ruby/object:Gem::Dependency
97
- version_requirements: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - ~>
100
- - !ruby/object:Gem::Version
101
- version: 4.1.0
102
- none: false
103
- prerelease: false
104
- name: factory_girl_rails
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 4.1.0
110
- none: false
111
- type: :runtime
112
48
  - !ruby/object:Gem::Dependency
113
49
  version_requirements: !ruby/object:Gem::Requirement
114
50
  requirements:
@@ -130,15 +66,15 @@ dependencies:
130
66
  requirements:
131
67
  - - ~>
132
68
  - !ruby/object:Gem::Version
133
- version: 0.5.0
69
+ version: 0.14.7
134
70
  none: false
135
71
  prerelease: false
136
- name: minitest-rails
72
+ name: minitest-reporters
137
73
  requirement: !ruby/object:Gem::Requirement
138
74
  requirements:
139
75
  - - ~>
140
76
  - !ruby/object:Gem::Version
141
- version: 0.5.0
77
+ version: 0.14.7
142
78
  none: false
143
79
  type: :runtime
144
80
  - !ruby/object:Gem::Dependency
@@ -157,22 +93,6 @@ dependencies:
157
93
  version: 0.5.0
158
94
  none: false
159
95
  type: :runtime
160
- - !ruby/object:Gem::Dependency
161
- version_requirements: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - ~>
164
- - !ruby/object:Gem::Version
165
- version: 0.4.0
166
- none: false
167
- prerelease: false
168
- name: minitest-rails-shoulda
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ~>
172
- - !ruby/object:Gem::Version
173
- version: 0.4.0
174
- none: false
175
- type: :runtime
176
96
  - !ruby/object:Gem::Dependency
177
97
  version_requirements: !ruby/object:Gem::Requirement
178
98
  requirements:
@@ -226,15 +146,15 @@ dependencies:
226
146
  requirements:
227
147
  - - ~>
228
148
  - !ruby/object:Gem::Version
229
- version: 0.13.2
149
+ version: 0.17.0
230
150
  none: false
231
151
  prerelease: false
232
- name: mocha
152
+ name: thor
233
153
  requirement: !ruby/object:Gem::Requirement
234
154
  requirements:
235
155
  - - ~>
236
156
  - !ruby/object:Gem::Version
237
- version: 0.13.2
157
+ version: 0.17.0
238
158
  none: false
239
159
  type: :runtime
240
160
  - !ruby/object:Gem::Dependency
@@ -242,55 +162,40 @@ dependencies:
242
162
  requirements:
243
163
  - - ~>
244
164
  - !ruby/object:Gem::Version
245
- version: 0.5.1
165
+ version: 0.13.2
246
166
  none: false
247
167
  prerelease: false
248
- name: minitest-rails-capybara
168
+ name: mocha
249
169
  requirement: !ruby/object:Gem::Requirement
250
170
  requirements:
251
171
  - - ~>
252
172
  - !ruby/object:Gem::Version
253
- version: 0.5.1
254
- none: false
255
- type: :runtime
256
- - !ruby/object:Gem::Dependency
257
- version_requirements: !ruby/object:Gem::Requirement
258
- requirements:
259
- - - '='
260
- - !ruby/object:Gem::Version
261
- version: 1.4.1
262
- none: false
263
- prerelease: false
264
- name: shoulda-matchers
265
- requirement: !ruby/object:Gem::Requirement
266
- requirements:
267
- - - '='
268
- - !ruby/object:Gem::Version
269
- version: 1.4.1
173
+ version: 0.13.2
270
174
  none: false
271
175
  type: :runtime
272
176
  - !ruby/object:Gem::Dependency
273
177
  version_requirements: !ruby/object:Gem::Requirement
274
178
  requirements:
275
- - - ~>
179
+ - - ! '>='
276
180
  - !ruby/object:Gem::Version
277
- version: 0.14.6
181
+ version: '0'
278
182
  none: false
279
183
  prerelease: false
280
- name: minitest-reporters
184
+ name: rake
281
185
  requirement: !ruby/object:Gem::Requirement
282
186
  requirements:
283
- - - ~>
187
+ - - ! '>='
284
188
  - !ruby/object:Gem::Version
285
- version: 0.14.6
189
+ version: '0'
286
190
  none: false
287
- type: :runtime
288
- description: Test harness generator for new Thincloud apps.
191
+ type: :development
192
+ description: Opinionated test dependencies and conventions for Ruby applications.
289
193
  email:
290
194
  - rbousquet@newleaders.com
291
195
  - pcohen@newleaders.com
292
196
  - dmorrison@newleaders.com
293
- executables: []
197
+ executables:
198
+ - thincloud-testify
294
199
  extensions: []
295
200
  extra_rdoc_files: []
296
201
  files:
@@ -300,58 +205,19 @@ files:
300
205
  - LICENSE
301
206
  - README.md
302
207
  - Rakefile
303
- - lib/generators/thincloud/test/templates/Guardfile
304
- - lib/generators/thincloud/test/templates/capybara.rb
305
- - lib/generators/thincloud/test/templates/database_cleaner.rb
306
- - lib/generators/thincloud/test/templates/factory_girl.rb
307
- - lib/generators/thincloud/test/templates/minitest.rb
308
- - lib/generators/thincloud/test/templates/minitest_helper.rb
309
- - lib/generators/thincloud/test/templates/routing_spec.rb
310
- - lib/generators/thincloud/test/templates/test.rake
311
- - lib/generators/thincloud/test/test_generator.rb
312
- - lib/tasks/thincloud-test_tasks.rake
208
+ - bin/thincloud-testify
313
209
  - lib/thincloud-test.rb
314
210
  - lib/thincloud/test.rb
315
- - lib/thincloud/test/railtie.rb
211
+ - lib/thincloud/test/templates/Guardfile
212
+ - lib/thincloud/test/templates/ci/before_script.sh
213
+ - lib/thincloud/test/templates/ci/ci_runner.sh
214
+ - lib/thincloud/test/templates/ci/travis.yml
215
+ - lib/thincloud/test/templates/minitest_helper.rb
216
+ - lib/thincloud/test/templates/support/minitest_reporters.rb
217
+ - lib/thincloud/test/templates/support/mocha.rb
218
+ - lib/thincloud/test/templates/test.rake
219
+ - lib/thincloud/test/test_generator.rb
316
220
  - lib/thincloud/test/version.rb
317
- - test/dummy/.gitignore
318
- - test/dummy/Guardfile
319
- - test/dummy/README.rdoc
320
- - test/dummy/Rakefile
321
- - test/dummy/app/assets/javascripts/application.js
322
- - test/dummy/app/assets/stylesheets/application.css
323
- - test/dummy/app/controllers/application_controller.rb
324
- - test/dummy/app/helpers/application_helper.rb
325
- - test/dummy/app/mailers/.gitkeep
326
- - test/dummy/app/models/.gitkeep
327
- - test/dummy/app/views/layouts/application.html.erb
328
- - test/dummy/config.ru
329
- - test/dummy/config/application.rb
330
- - test/dummy/config/boot.rb
331
- - test/dummy/config/database.yml
332
- - test/dummy/config/environment.rb
333
- - test/dummy/config/environments/development.rb
334
- - test/dummy/config/environments/production.rb
335
- - test/dummy/config/environments/test.rb
336
- - test/dummy/config/initializers/backtrace_silencers.rb
337
- - test/dummy/config/initializers/inflections.rb
338
- - test/dummy/config/initializers/mime_types.rb
339
- - test/dummy/config/initializers/secret_token.rb
340
- - test/dummy/config/initializers/session_store.rb
341
- - test/dummy/config/initializers/wrap_parameters.rb
342
- - test/dummy/config/locales/en.yml
343
- - test/dummy/config/routes.rb
344
- - test/dummy/lib/assets/.gitkeep
345
- - test/dummy/lib/tasks/test.rake
346
- - test/dummy/log/.gitkeep
347
- - test/dummy/public/404.html
348
- - test/dummy/public/422.html
349
- - test/dummy/public/500.html
350
- - test/dummy/public/favicon.ico
351
- - test/dummy/script/rails
352
- - test/dummy/test/factories/.gitkeep
353
- - test/dummy/test/minitest_helper.rb
354
- - test/integration/navigation_test.rb
355
221
  - test/test_helper.rb
356
222
  - test/thincloud-test_test.rb
357
223
  - thincloud-test.gemspec
@@ -368,61 +234,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
368
234
  version: '0'
369
235
  segments:
370
236
  - 0
371
- hash: -742956044401150059
237
+ hash: -4148500200877994046
372
238
  none: false
373
239
  required_rubygems_version: !ruby/object:Gem::Requirement
374
240
  requirements:
375
- - - ! '>='
241
+ - - ! '>'
376
242
  - !ruby/object:Gem::Version
377
- version: '0'
378
- segments:
379
- - 0
380
- hash: -742956044401150059
243
+ version: 1.3.1
381
244
  none: false
382
245
  requirements: []
383
246
  rubyforge_project:
384
247
  rubygems_version: 1.8.24
385
248
  signing_key:
386
249
  specification_version: 3
387
- summary: Test harness generator for new Thincloud apps.
250
+ summary: Opinionated test dependencies and conventions for Ruby applications.
388
251
  test_files:
389
- - test/dummy/.gitignore
390
- - test/dummy/Guardfile
391
- - test/dummy/README.rdoc
392
- - test/dummy/Rakefile
393
- - test/dummy/app/assets/javascripts/application.js
394
- - test/dummy/app/assets/stylesheets/application.css
395
- - test/dummy/app/controllers/application_controller.rb
396
- - test/dummy/app/helpers/application_helper.rb
397
- - test/dummy/app/mailers/.gitkeep
398
- - test/dummy/app/models/.gitkeep
399
- - test/dummy/app/views/layouts/application.html.erb
400
- - test/dummy/config.ru
401
- - test/dummy/config/application.rb
402
- - test/dummy/config/boot.rb
403
- - test/dummy/config/database.yml
404
- - test/dummy/config/environment.rb
405
- - test/dummy/config/environments/development.rb
406
- - test/dummy/config/environments/production.rb
407
- - test/dummy/config/environments/test.rb
408
- - test/dummy/config/initializers/backtrace_silencers.rb
409
- - test/dummy/config/initializers/inflections.rb
410
- - test/dummy/config/initializers/mime_types.rb
411
- - test/dummy/config/initializers/secret_token.rb
412
- - test/dummy/config/initializers/session_store.rb
413
- - test/dummy/config/initializers/wrap_parameters.rb
414
- - test/dummy/config/locales/en.yml
415
- - test/dummy/config/routes.rb
416
- - test/dummy/lib/assets/.gitkeep
417
- - test/dummy/lib/tasks/test.rake
418
- - test/dummy/log/.gitkeep
419
- - test/dummy/public/404.html
420
- - test/dummy/public/422.html
421
- - test/dummy/public/500.html
422
- - test/dummy/public/favicon.ico
423
- - test/dummy/script/rails
424
- - test/dummy/test/factories/.gitkeep
425
- - test/dummy/test/minitest_helper.rb
426
- - test/integration/navigation_test.rb
427
252
  - test/test_helper.rb
428
253
  - test/thincloud-test_test.rb