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.
- data/Gemfile +1 -2
- data/LICENSE +1 -1
- data/README.md +32 -12
- data/Rakefile +8 -27
- data/bin/thincloud-testify +5 -0
- data/lib/thincloud-test.rb +1 -9
- data/lib/thincloud/test.rb +2 -2
- data/lib/{generators/thincloud → thincloud}/test/templates/Guardfile +0 -0
- data/lib/thincloud/test/templates/ci/before_script.sh +6 -0
- data/lib/thincloud/test/templates/ci/ci_runner.sh +8 -0
- data/lib/thincloud/test/templates/ci/travis.yml +12 -0
- data/lib/{generators/thincloud → thincloud}/test/templates/minitest_helper.rb +6 -10
- data/lib/thincloud/test/templates/support/minitest_reporters.rb +4 -0
- data/lib/thincloud/test/templates/support/mocha.rb +1 -0
- data/lib/{generators/thincloud → thincloud}/test/templates/test.rake +0 -0
- data/lib/thincloud/test/test_generator.rb +54 -0
- data/lib/thincloud/test/version.rb +1 -1
- data/test/test_helper.rb +2 -15
- data/test/thincloud-test_test.rb +3 -5
- data/thincloud-test.gemspec +14 -18
- metadata +37 -212
- data/lib/generators/thincloud/test/templates/capybara.rb +0 -10
- data/lib/generators/thincloud/test/templates/database_cleaner.rb +0 -12
- data/lib/generators/thincloud/test/templates/factory_girl.rb +0 -4
- data/lib/generators/thincloud/test/templates/minitest.rb +0 -11
- data/lib/generators/thincloud/test/templates/routing_spec.rb +0 -12
- data/lib/generators/thincloud/test/test_generator.rb +0 -36
- data/lib/tasks/thincloud-test_tasks.rake +0 -4
- data/lib/thincloud/test/railtie.rb +0 -13
- data/test/dummy/.gitignore +0 -1
- data/test/dummy/Guardfile +0 -17
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -59
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -58
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/lib/tasks/test.rake +0 -10
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/dummy/test/factories/.gitkeep +0 -0
- data/test/dummy/test/minitest_helper.rb +0 -36
- data/test/integration/navigation_test.rb +0 -10
data/test/dummy/public/422.html
DELETED
@@ -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>
|
data/test/dummy/public/500.html
DELETED
@@ -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
|
data/test/dummy/script/rails
DELETED
@@ -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!
|