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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7457f2ea8d815f3a95cbc63f8bac1427d92f1922
4
- data.tar.gz: 62d7d8f58d1640cd8d87448f5e015faa4b946118
3
+ metadata.gz: 7dcf568407affdad0a3b0ca0cc3d7f3eaa425dc9
4
+ data.tar.gz: a1026054ecf0e9d990dfba7efb75a13b1c70d5a8
5
5
  SHA512:
6
- metadata.gz: 5ff88e2fc99c59cea9cad8061fe5da2746ea21ec7dc9d2dad3b95c4a77c79a7a1ebff902ebd2cfcf31046a7f9061a7c487f6e85b52b665c86f0f14773bbcfe13
7
- data.tar.gz: ea4f9b65633db9613c615f55387119a479f3455c3879a30adeb421d289f2464981d43fa46ba9834253758557efd885e282fb9af0dfcdae361027675da9013c10
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 SampleTest < PartialTestcase::Base
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
@@ -45,7 +45,7 @@ module PartialTestcase
45
45
  end
46
46
 
47
47
  def document_root_element
48
- Nokogiri::XML(@html_body.to_s)
48
+ Nokogiri::HTML(@html_body.to_s)
49
49
  end
50
50
 
51
51
  def render_partial(*args, &block)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module PartialTestcase
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
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.2
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-02 00:00:00.000000000 Z
11
+ date: 2017-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails