beaker 5.5.0 → 5.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,14 +27,14 @@ module Beaker
27
27
  @files = [rb_test]
28
28
  ts = described_class.new('name', 'hosts', options, Time.now)
29
29
  tfm = ts.instance_variable_get(:@fail_mode)
30
- expect(tfm).to be == :slow
30
+ expect(tfm).to eq :slow
31
31
  end
32
32
 
33
33
  it 'uses provided parameter fail_mode' do
34
34
  @files = [rb_test]
35
35
  ts = described_class.new('name', 'hosts', options, Time.now, :fast)
36
36
  tfm = ts.instance_variable_get(:@fail_mode)
37
- expect(tfm).to be == :fast
37
+ expect(tfm).to eq :fast
38
38
  end
39
39
 
40
40
  it 'uses options fail_mode if fail_mode parameter is not provided' do
@@ -42,7 +42,7 @@ module Beaker
42
42
  options[:fail_mode] = :fast
43
43
  ts = described_class.new('name', 'hosts', options, Time.now)
44
44
  tfm = ts.instance_variable_get(:@fail_mode)
45
- expect(tfm).to be == :fast
45
+ expect(tfm).to eq :fast
46
46
  end
47
47
  end
48
48
 
@@ -135,7 +135,7 @@ module Beaker
135
135
  test_suite_result.add_test_case(testcase1)
136
136
  test_suite_result.add_test_case(testcase2)
137
137
  test_suite_result.add_test_case(testcase3)
138
- expect(test_suite_result.passed_tests).to be == 2
138
+ expect(test_suite_result.passed_tests).to eq 2
139
139
  end
140
140
 
141
141
  it 'calculates failed tests' do
@@ -145,7 +145,7 @@ module Beaker
145
145
  test_suite_result.add_test_case(testcase1)
146
146
  test_suite_result.add_test_case(testcase2)
147
147
  test_suite_result.add_test_case(testcase3)
148
- expect(test_suite_result.failed_tests).to be == 1
148
+ expect(test_suite_result.failed_tests).to eq 1
149
149
  end
150
150
 
151
151
  it 'calculates errored tests' do
@@ -155,7 +155,7 @@ module Beaker
155
155
  test_suite_result.add_test_case(testcase1)
156
156
  test_suite_result.add_test_case(testcase2)
157
157
  test_suite_result.add_test_case(testcase3)
158
- expect(test_suite_result.errored_tests).to be == 1
158
+ expect(test_suite_result.errored_tests).to eq 1
159
159
  end
160
160
 
161
161
  it 'calculates skipped tests' do
@@ -165,7 +165,7 @@ module Beaker
165
165
  test_suite_result.add_test_case(testcase1)
166
166
  test_suite_result.add_test_case(testcase2)
167
167
  test_suite_result.add_test_case(testcase3)
168
- expect(test_suite_result.skipped_tests).to be == 1
168
+ expect(test_suite_result.skipped_tests).to eq 1
169
169
  end
170
170
 
171
171
  it 'calculates pending tests' do
@@ -175,7 +175,7 @@ module Beaker
175
175
  test_suite_result.add_test_case(testcase1)
176
176
  test_suite_result.add_test_case(testcase2)
177
177
  test_suite_result.add_test_case(testcase3)
178
- expect(test_suite_result.pending_tests).to be == 1
178
+ expect(test_suite_result.pending_tests).to eq 1
179
179
  end
180
180
 
181
181
  it 'calculates sum_failed as a sum of errored and failed TestCases' do
@@ -185,7 +185,7 @@ module Beaker
185
185
  test_suite_result.add_test_case(testcase1)
186
186
  test_suite_result.add_test_case(testcase2)
187
187
  test_suite_result.add_test_case(testcase3)
188
- expect(test_suite_result.sum_failed).to be == 2
188
+ expect(test_suite_result.sum_failed).to eq 2
189
189
  end
190
190
 
191
191
  it 'reports success with no errors/failures' do
@@ -195,7 +195,7 @@ module Beaker
195
195
  test_suite_result.add_test_case(testcase1)
196
196
  test_suite_result.add_test_case(testcase2)
197
197
  test_suite_result.add_test_case(testcase3)
198
- expect(test_suite_result.success?).to be == false
198
+ expect(test_suite_result.success?).to eq false
199
199
  end
200
200
 
201
201
  it 'reports failed if any tests error/fail' do
@@ -205,7 +205,7 @@ module Beaker
205
205
  test_suite_result.add_test_case(testcase1)
206
206
  test_suite_result.add_test_case(testcase2)
207
207
  test_suite_result.add_test_case(testcase3)
208
- expect(test_suite_result.failed?).to be == true
208
+ expect(test_suite_result.failed?).to eq true
209
209
  end
210
210
 
211
211
  it 'can calculate the sum of all TestCase runtimes' do
@@ -215,7 +215,7 @@ module Beaker
215
215
  test_suite_result.add_test_case(testcase1)
216
216
  test_suite_result.add_test_case(testcase2)
217
217
  test_suite_result.add_test_case(testcase3)
218
- expect(test_suite_result.elapsed_time).to be == 111
218
+ expect(test_suite_result.elapsed_time).to eq 111
219
219
  end
220
220
 
221
221
  describe '#print_test_result' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.0
4
+ version: 5.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-02 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fakefs
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.1'
61
+ version: 2.4.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.1'
68
+ version: 2.4.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitar
71
71
  requirement: !ruby/object:Gem::Requirement