render_turbo_stream 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/render_turbo_stream/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd9433b4adbd71cc1c6200b10b969c3692772f4cc8a4b21e0e02948e58104a3a
|
4
|
+
data.tar.gz: 21f9ba3336cdc8875300738885eee417a971fe4f6364c81ca9e772579ba80f10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e50b4ec7e474c6f8c4476f49eb97e6d1088308182d1b3d9d7ecb31fcbc491a940b6cf71046c4626cca36f8234e3008fc09b8bf6ae8ac12473ca04c795cf8faea
|
7
|
+
data.tar.gz: a5c91d74dce4bc5031da22fa702a74d3a8e5eff0aa19ed7bdd7296a9dc6e369c0e7a51cdfb964c316a4f3bddc12c3635af557113ae1d96d7f67d4715fb16cced
|
data/README.md
CHANGED
@@ -145,7 +145,7 @@ expect(partial_response('articles/form', id: 'form', css: '.field_with_errors',
|
|
145
145
|
|
146
146
|
Consider a controller action that should respond in 2 flashes.
|
147
147
|
|
148
|
-
Helper for writing the test: On Debugger, inside the test,
|
148
|
+
Helper for writing the test: On Debugger, inside the test, check the output of `partials_log`.
|
149
149
|
|
150
150
|
```ruby
|
151
151
|
expect(partials_count).to eq(1)
|
@@ -164,7 +164,7 @@ expect(
|
|
164
164
|
```
|
165
165
|
`partial_response_count` always returns the number of matched responses.
|
166
166
|
|
167
|
-
Possible
|
167
|
+
Possible matchers can be found at [Nokogiri](https://nokogiri.org/tutorials/searching_a_xml_html_document.html). That should be enough for this level. For more detailed testing of partials, there are view tests. And many of the partials are regularly accessed in two ways, for example a `form': it is pushed by turbo_stream as well as by calling edit_customer_path.
|
168
168
|
|
169
169
|
P.S.:
|
170
170
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: render_turbo_stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- christian
|
@@ -72,5 +72,6 @@ requirements: []
|
|
72
72
|
rubygems_version: 3.4.12
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
|
-
summary: Render turbo-stream
|
75
|
+
summary: Render partials by turbo-stream directly from the controller. Test helpers
|
76
|
+
included.
|
76
77
|
test_files: []
|