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
31module EquivalenceCases
41 module ConstantEvaluation
51 class ConstantEvaluation < Phlex::HTML
61 def self.equivalence_scenarios
7 {
84 "other fragment" => -> (klass) { klass.new.call(fragments: ["other"]) },
9 }
10 end
11
121 def view_template
1312 fragment("other") { p { "selected" } }
143 div(class: MissingConstant) { "x" }
15 end
16 end
17 end
18end