Class: PartialTestcase::Base
- Inherits:
-
ActionView::TestCase
- Object
- ActionView::TestCase
- PartialTestcase::Base
- Includes:
- Rails::Dom::Testing::Assertions
- Defined in:
- lib/partial_testcase/base.rb
Instance Attribute Summary collapse
-
#html_body ⇒ Object
readonly
Returns the value of attribute html_body.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#html_body ⇒ Object (readonly)
Returns the value of attribute html_body.
6 7 8 |
# File 'lib/partial_testcase/base.rb', line 6 def html_body @html_body end |
Class Method Details
.partial_path(partial) ⇒ Object
15 16 17 |
# File 'lib/partial_testcase/base.rb', line 15 def self.partial_path(partial) self.partial = partial end |
.with_helpers(&block) ⇒ Object
19 20 21 |
# File 'lib/partial_testcase/base.rb', line 19 def self.with_helpers(&block) self.helpers_context = block end |
.with_module(mod) ⇒ Object
23 24 25 |
# File 'lib/partial_testcase/base.rb', line 23 def self.with_module(mod) modules << mod end |
Instance Method Details
#assign(**assigns) ⇒ Object
27 28 29 |
# File 'lib/partial_testcase/base.rb', line 27 def assign(**assigns) @_assigns.merge!(assigns) end |
#before_setup ⇒ Object
10 11 12 13 |
# File 'lib/partial_testcase/base.rb', line 10 def before_setup super setup_view end |