Skip to content

Commit f0c494e

Browse files
peterctiagofsilva
andcommitted
Improve test naming and fix typo
Co-authored-by: Tiago Farias <tiagofsilva@users.noreply.github.com>
1 parent 924bbce commit f0c494e

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
matrix:
1515
ruby: ['head', '4.0.2', '3.4', 'truffleruby', 'jruby']
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- uses: ruby/setup-ruby@v1
1919
with:
2020
ruby-version: ${{ matrix.ruby }}

test/test_testrocket.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,41 @@ class RefinementTest
55

66
def self.test!
77
describe TestRocket do
8-
it 'should find emptiness non-truthful by default' do
8+
it 'finds emptiness non-truthful by default' do
99
_(+->{}).must_match(/FAIL/)
1010
_(+->{}).must_match("#{__FILE__}:#{__LINE__}")
1111
end
1212

13-
it 'should pass a simple positive assertion' do
13+
it 'passes a simple positive assertion' do
1414
_(+->{ 2 + 2 == 4 }).must_match(/OK/)
1515
end
1616

17-
it 'should pass a simple negative assertion' do
17+
it 'passes a simple negative assertion' do
1818
_(-->{ 2 + 2 == 5 }).must_match(/OK/)
1919
end
2020

21-
it 'should fail a simple erroneous assertion' do
21+
it 'fails a simple erroneous assertion' do
2222
_(+->{ 2 + 2 == 5 }).must_match(/FAIL/)
2323
_(+->{ 2 + 2 == 5 }).must_match("#{__FILE__}:#{__LINE__}")
2424
end
2525

26-
it 'should fail a simple correct assertion assumed to fail' do
26+
it 'fails a simple correct assertion assumed to fail' do
2727
_(-->{ 2 + 2 == 4 }).must_match(/FAIL/)
2828
_(-->{ 2 + 2 == 4 }).must_match("#{__FILE__}:#{__LINE__}")
2929
end
3030

31-
it 'should give a pending notice' do
31+
it 'gives a pending notice' do
3232
_(~->{ 'a pending test' }).must_match(/PENDING/)
3333
_(~->{ 'a pending test' }).must_match(/a pending test/)
3434
_(~->{ 'a pending test' }).must_match("#{__FILE__}:#{__LINE__}")
3535
end
3636

37-
it 'should fire a description rocket' do
37+
it 'fires a description rocket' do
3838
_(!->{ 'a description' }).must_match(/FIRE/)
3939
_(!->{ 'a description' }).must_match(/a description/)
4040
end
4141

42-
it 'would influence Ruby Proc if TestRocket used explitly' do
42+
it 'influences Ruby Proc if TestRocket used explicitly' do
4343
(
4444
ok = ->() { nil }
4545
_(!ok)
@@ -52,7 +52,7 @@ def self.test!
5252
class NoRefinementTest
5353
def self.test!
5454
describe 'Without `using TestRocket`' do
55-
it 'should not influence global Ruby scope and other libs' do
55+
it 'does not influence global Ruby scope and other libs' do
5656
(
5757
ok = ->() { nil }
5858
_(!ok)

0 commit comments

Comments
 (0)