test_bench-fixture 2.1.0.0.pre2 → 2.1.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79ad501bf30c3a1bf5de91b4273d1bd175630941e83d6f8951b31942ec60e777
4
- data.tar.gz: de039b300282b149380af64bc39b3bf111dc32eef5fde3dc722c00e120025902
3
+ metadata.gz: 033b9c9ab58eb174ef49322146024b3640cfba35b27672754c7623203c709c3f
4
+ data.tar.gz: e645b143f4f318e9d53a28ac74d288c00662d18ac1b0fc16e6992262b16d0942
5
5
  SHA512:
6
- metadata.gz: 65a7db1e0610ef1313ee529ccfbb2285e244b71216497a171fa268e724f1da94839c314b71c60f1d6d681368df92b90f6422235c0a2aabc476246142f34e14af
7
- data.tar.gz: '0193fd7060a803c20bcc8aa13837b05b7ebfd5a7949467ff06abc859150bc1f085a429b38b59305dc7ca369cac47f840628c8a03ee06710c7f923e9837a9b019'
6
+ metadata.gz: 7f65c7d27720fd5435f19cd220855ef91f752741f01637990dd5defe7b0c9c17c40f8b6ae2c89846be17120d59b1feb3e94c8f1bcb7897be417cd7d1f38a1551
7
+ data.tar.gz: 99def3195142901325d0145f070c14d00138b7db79c5ef458c3a2e9f127ec0fb68b1366db2fed888247f9f1852bf903ef63336a60e5c789b40852786265ac8c2
@@ -104,18 +104,26 @@ module TestBench
104
104
  end
105
105
 
106
106
  def context(title=nil, &block)
107
+ title = title&.to_str
108
+
107
109
  test_session.context(title, &block)
108
110
  end
109
111
 
110
112
  def context!(title=nil, &block)
113
+ title = title&.to_str
114
+
111
115
  test_session.context!(title, &block)
112
116
  end
113
117
 
114
118
  def test(title=nil, &block)
119
+ title = title&.to_str
120
+
115
121
  test_session.test(title, &block)
116
122
  end
117
123
 
118
124
  def test!(title=nil, &block)
125
+ title = title&.to_str
126
+
119
127
  test_session.test!(title, &block)
120
128
  end
121
129
 
@@ -132,6 +140,10 @@ module TestBench
132
140
  def self.comment(telemetry, event_class, text, *additional_texts, heading: nil, quote: nil)
133
141
  texts = [text, *additional_texts]
134
142
 
143
+ texts.map! do |text|
144
+ text.to_str
145
+ end
146
+
135
147
  if quote.nil?
136
148
  quote = texts.last.end_with?("\n")
137
149
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-fixture
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.0.pre2
4
+ version: 2.1.0.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-24 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test_bench-session