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
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
File without changes
@@ -1,36 +0,0 @@
1
- if RUBY_ENGINE == "ruby"
2
- begin
3
- require "simplecov"
4
- SimpleCov.add_filter "test"
5
- SimpleCov.add_filter "config"
6
- SimpleCov.command_name "MiniTest"
7
- SimpleCov.start
8
- rescue LoadError
9
- warn "unable to load SimpleCov"
10
- end
11
- end
12
-
13
- ENV["RAILS_ENV"] = "test"
14
- require File.expand_path('../../config/environment', __FILE__)
15
-
16
- require "minitest/autorun"
17
- require "minitest/rails"
18
- require "minitest/pride" # Provides awesome colorful output
19
-
20
- # Uncomment if you want Capybara in accceptance/integration tests
21
- # require "minitest/rails/capybara"
22
-
23
- require "mocha/setup"
24
-
25
- # Requires supporting ruby files with custom matchers and macros, etc,
26
- # in spec/support/ and its subdirectories.
27
- Dir[File.join("./test/support/**/*.rb")].sort.each { |f| require f }
28
-
29
- class MiniTest::Rails::ActiveSupport::TestCase
30
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
31
- # fixtures :all
32
-
33
- # Add more helper methods to be used by all tests here...
34
- end
35
-
36
- MiniTest::Rails.override_testunit!
@@ -1,10 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
5
-
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
10
-