test_bench-fixture 3.0.0.0.pre.1 → 3.0.0.0.pre.3
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/lib/test_bench/fixture/fixture.rb +7 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aadcc219819072f1328b77cca5726d3d2cfe1115f4f0438a0c44a2f3e6a22e4f
|
4
|
+
data.tar.gz: e2ba470413353351f912630e2ad9410af0649efc2c4dfee81e8857117dd4eafc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c6f4057f825d38fe240043e8e67d4a856a45407652ae02f929adab822407cb8d30dff6c3a7c717886e7855e69d3272c3e6013630ee31fa68ae471224eef33e3
|
7
|
+
data.tar.gz: 27dc1fa4750e8885f9e25cb087d587516b83ff2e4c77007bf9cc5442e848ad1d45bfa67d6f30c7d363a33ef740912bf523fba04b84ef67a88edf13f65b9ac0dc
|
@@ -117,6 +117,13 @@ module TestBench
|
|
117
117
|
return text, disposition
|
118
118
|
end
|
119
119
|
|
120
|
+
## Remove when projects use comment and detail to print fixture output directly - Nathan, Tue Jul 15 2025
|
121
|
+
def self.output(fixture)
|
122
|
+
test_session = fixture.test_session
|
123
|
+
|
124
|
+
Output::Get.(test_session)
|
125
|
+
end
|
126
|
+
|
120
127
|
def comment(heading_text=nil, text_or_fixture, style: nil, disposition: nil)
|
121
128
|
if not heading_text.nil?
|
122
129
|
heading_style = Output::CommentStyle.heading
|
@@ -194,10 +201,6 @@ module TestBench
|
|
194
201
|
end
|
195
202
|
end
|
196
203
|
|
197
|
-
def execute(file_path)
|
198
|
-
test_session.execute(file_path)
|
199
|
-
end
|
200
|
-
|
201
204
|
def fixture(fixture_class, *, test_session: nil, **, &)
|
202
205
|
test_session ||= self.test_session
|
203
206
|
|