quickdraw/compilation_equivalence_cases/constant_evaluation.rb
Lines
100%8 of 8 covered
Branches
—0 of 0 covered
Methods
100%2 of 2 covered
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 1 | module EquivalenceCases |
| 4 | 1 | module ConstantEvaluation |
| 5 | 1 | class ConstantEvaluation < Phlex::HTML |
| 6 | 1 | def self.equivalence_scenarios |
| 7 | { | |
| 8 | 4 | "other fragment" => -> (klass) { klass.new.call(fragments: ["other"]) }, |
| 9 | } | |
| 10 | end | |
| 11 | ||
| 12 | 1 | def view_template |
| 13 | 12 | fragment("other") { p { "selected" } } |
| 14 | 3 | div(class: MissingConstant) { "x" } |
| 15 | end | |
| 16 | end | |
| 17 | end | |
| 18 | end |