phlex 2.0.0.rc2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "nokogiri"
4
-
5
- module Phlex::Testing::Nokogiri
6
- include Phlex::Testing::SGML
7
-
8
- def render_fragment(...)
9
- ::Nokogiri::HTML5.fragment(
10
- render_to_string(...),
11
- )
12
- end
13
-
14
- def render_document(...)
15
- ::Nokogiri::HTML5(
16
- render_to_string(...),
17
- )
18
- end
19
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "nokolexbor"
4
-
5
- module Phlex::Testing::Nokolexbor
6
- include Phlex::Testing::SGML
7
-
8
- def render_fragment(...)
9
- Nokolexbor::DocumentFragment.parse(
10
- render_to_string(...),
11
- )
12
- end
13
-
14
- def render_document(...)
15
- ::Nokolexbor::HTML(
16
- render_to_string(...),
17
- )
18
- end
19
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Phlex::Testing::SGML
4
- def render_to_string(component, &)
5
- component.call(view_context:, &)
6
- end
7
-
8
- def view_context = nil
9
- end
data/lib/phlex/testing.rb DELETED
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "phlex"
4
-
5
- module Phlex::Testing
6
- autoload :SGML, "phlex/testing/sgml"
7
- autoload :Capybara, "phlex/testing/capybara"
8
- autoload :Nokogiri, "phlex/testing/nokogiri"
9
- autoload :Nokolexbor, "phlex/testing/nokolexbor"
10
- end