partial_testcase 0.1.2 → 0.1.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 +8 -2
- data/Rakefile +0 -7
- data/lib/partial_testcase/base.rb +1 -1
- data/lib/partial_testcase/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dcf568407affdad0a3b0ca0cc3d7f3eaa425dc9
|
4
|
+
data.tar.gz: a1026054ecf0e9d990dfba7efb75a13b1c70d5a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 246c66caad254c4bf36d059cd07878b7c5cc6769a622ba80a553679efed02dc6de8684c6aae7fb6531474b26d9f85d45640624be1305a77dd1232dd0dd0e4b7a
|
7
|
+
data.tar.gz: dadbd413d47e97ac499457b0b07db16f07580c6533a4e973ff1682a0a10f9fce5874ce744bca81322700605501c9fb77c18bb4c342f1fc6fc50093636800d995
|
data/README.md
CHANGED
@@ -13,7 +13,13 @@ PartialTestcase is a gem providing unit tests for your partials.
|
|
13
13
|
Add this line to your application's Gemfile:
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
gem 'partial_testcase'
|
16
|
+
gem 'partial_testcase', require: false
|
17
|
+
```
|
18
|
+
|
19
|
+
Require the module at the top of your `test_helper.rb`:
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'partial_testcase'
|
17
23
|
```
|
18
24
|
|
19
25
|
You're ready to go!
|
@@ -60,7 +66,7 @@ render_partial('sample/users', foo: 'bar')
|
|
60
66
|
|
61
67
|
Otherwise, if you test the same partial every time, use the `partial_path` method:
|
62
68
|
```ruby
|
63
|
-
class
|
69
|
+
class Sample::UsersTest < PartialTestcase::Base
|
64
70
|
partial_path 'sample/users'
|
65
71
|
|
66
72
|
test 'sample test' do
|
data/Rakefile
CHANGED
@@ -14,13 +14,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
17
|
require 'bundler/gem_tasks'
|
23
|
-
|
24
18
|
require 'rake/testtask'
|
25
19
|
|
26
20
|
Rake::TestTask.new(:test) do |t|
|
@@ -29,5 +23,4 @@ Rake::TestTask.new(:test) do |t|
|
|
29
23
|
t.verbose = false
|
30
24
|
end
|
31
25
|
|
32
|
-
|
33
26
|
task default: :test
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: partial_testcase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Meichelbeck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|