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
16 17 18 |
# File 'lib/partial_testcase/base.rb', line 16 def self.partial_path(partial) self.partial = partial end |
.with_helpers(&block) ⇒ Object
20 21 22 |
# File 'lib/partial_testcase/base.rb', line 20 def self.with_helpers(&block) helpers << block end |
.with_module(mod) ⇒ Object
24 25 26 |
# File 'lib/partial_testcase/base.rb', line 24 def self.with_module(mod) modules << mod end |
Instance Method Details
#assign(**assigns) ⇒ Object
28 29 30 |
# File 'lib/partial_testcase/base.rb', line 28 def assign(**assigns) @_assigns.merge!(assigns) end |
#before_setup ⇒ Object
11 12 13 14 |
# File 'lib/partial_testcase/base.rb', line 11 def before_setup setup_view super end |