rails-controller-testing 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +60 -0
- data/lib/rails-controller-testing.rb +19 -11
- data/lib/rails/controller/testing/template_assertions.rb +2 -0
- data/lib/rails/controller/testing/version.rb +1 -1
- data/test/controllers/assigns_test.rb +0 -2
- data/test/controllers/template_assertions_test.rb +0 -2
- data/test/dummy/log/test.log +6672 -0
- data/test/helpers/template_assertions_test.rb +0 -2
- data/test/integration/template_assertions_test.rb +0 -3
- data/test/test_helper.rb +1 -0
- metadata +6 -5
@@ -2,8 +2,6 @@ require 'test_helper'
|
|
2
2
|
require 'rails-controller-testing'
|
3
3
|
|
4
4
|
class RenderTemplateTest < ActionView::TestCase
|
5
|
-
include Rails::Controller::Testing
|
6
|
-
|
7
5
|
test "supports specifying templates with a Regexp" do
|
8
6
|
render(template: "test/hello_world")
|
9
7
|
assert_template %r{\Atest/hello_world\Z}
|
@@ -1,9 +1,6 @@
|
|
1
1
|
require 'test_helper'
|
2
|
-
require 'rails-controller-testing'
|
3
2
|
|
4
3
|
class TemplateAssertionsIntegrationTest < ActionDispatch::IntegrationTest
|
5
|
-
include Rails::Controller::Testing
|
6
|
-
|
7
4
|
def test_template_reset_between_requests
|
8
5
|
get '/template_assertions/render_with_template'
|
9
6
|
assert_template 'test/hello_world'
|
data/test/test_helper.rb
CHANGED
@@ -4,6 +4,7 @@ ENV["RAILS_ENV"] = "test"
|
|
4
4
|
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
5
|
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
6
|
require "rails/test_help"
|
7
|
+
require 'rails-controller-testing'
|
7
8
|
|
8
9
|
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
9
10
|
# to be shown.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-controller-testing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alan Guo Xiang Tan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.2
|
26
|
+
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,6 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- README.md
|
48
49
|
- Rakefile
|
49
50
|
- lib/rails-controller-testing.rb
|
50
51
|
- lib/rails/controller/testing/integration.rb
|
@@ -128,7 +129,7 @@ rubyforge_project:
|
|
128
129
|
rubygems_version: 2.4.5
|
129
130
|
signing_key:
|
130
131
|
specification_version: 4
|
131
|
-
summary: Extracting `assigns
|
132
|
+
summary: Extracting `assigns` and `assert_template` from ActionDispatch.
|
132
133
|
test_files:
|
133
134
|
- test/dummy/public/422.html
|
134
135
|
- test/dummy/public/500.html
|