quickdraw/compilation_equivalence_cases/fragment_block_pass.rb
Lines
0%0 of 8 covered
Branches
—0 of 0 covered
Methods
0%0 of 2 covered
- Not run
- 3-68-11
- Never called
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module FragmentBlockPass |
| 5 | 0 | class FragmentBlockPass < Phlex::HTML |
| 6 | 0 | def self.equivalence_scenarios = { "a only" => -> (klass) { klass.new.call(fragments: [:a]) } } |
| 7 | ||
| 8 | 0 | def view_template |
| 9 | 0 | div { "before" } |
| 10 | 0 | fragment(:a, &proc { div }) |
| 11 | 0 | div { "after" } |
| 12 | end | |
| 13 | end | |
| 14 | end | |
| 15 | end |