partial_testcase 0.1.5 → 0.1.6

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: 07091b25c319c112a6620485b6bb63a5c604cac3
4
- data.tar.gz: 64d9dcd5f0968fd2bb8147c06029a9c6923aa4d4
3
+ metadata.gz: 8d2f07dfce5408a70d68482d1c7d5536c0df2ffd
4
+ data.tar.gz: 6e84af4c0c09e0397d692d5856df7f41935485ed
5
5
  SHA512:
6
- metadata.gz: 1dd8825a0220cdc09bf61de730e617f4820c992cc2b1a8ff212fe6df550cea377cb0794f329ed22f669fc7b52d36a24a4d1ff49900739754428a9c4fb19b0f9d
7
- data.tar.gz: 00411ca68790ff42792c383c63ab8b9d3ad5cf7fea9f9ee0d52620c667ddfbe7081997a3f6d53f159dd7958b76f3e84b58c94d651415ea004e826d1b02335a39
6
+ metadata.gz: fd0777076830ea962436a9cd96e1a76f1a684799dc55c10684dd3224b4b85f1c546cbecec497d10101effcb7f42bced2fcaf86d59f6b9ac642fcbe44d518b729
7
+ data.tar.gz: 8bcc7db5f96d6480cb549b222b513d0c35a4e583a9fe64973a840528e6ec2ee1b18ea99082b7f3fd9b73f2a73fafb4d605088f52dc28c43d30e50b67ef8ed87d
@@ -4,8 +4,9 @@ module PartialTestcase
4
4
  include Rails::Dom::Testing::Assertions
5
5
 
6
6
  attr_reader :html_body
7
- class_attribute :partial, :helpers_context, :modules
7
+ class_attribute :partial, :helpers_contexts, :modules
8
8
  self.modules = []
9
+ self.helpers_contexts = []
9
10
 
10
11
  def before_setup
11
12
  setup_view
@@ -17,7 +18,7 @@ module PartialTestcase
17
18
  end
18
19
 
19
20
  def self.with_helpers(&block)
20
- self.helpers_context = block
21
+ helpers_contexts << block
21
22
  end
22
23
 
23
24
  def self.with_module(mod)
@@ -54,7 +55,9 @@ module PartialTestcase
54
55
  self.class.modules.each do |mod|
55
56
  @_action_view_class.include(mod)
56
57
  end
57
- add_to_context(self.class.helpers_context)
58
+ self.class.helpers_contexts.each do |context|
59
+ add_to_context(context)
60
+ end
58
61
  add_to_context(block)
59
62
 
60
63
  options = args.extract_options!
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module PartialTestcase
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: partial_testcase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Meichelbeck