Update to new Minitest namespace synatx (#1027)

This commit is contained in:
Toni Dezman 2020-07-08 02:58:58 +02:00 committed by GitHub
parent 5c4b57691f
commit 16588e2efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -43,9 +43,9 @@ category: Ruby
proc { ... }.must_raise exception
proc { ... }.must_throw sym
### Unit::TestCase
### Test
class TestHipster < MiniTest::Unit::TestCase
class TestHipster < Minitest::Test
def setup
@subject = ["silly hats", "skinny jeans"]
end
@ -85,7 +85,7 @@ category: Ruby
assert_silent
assert_throws
### MiniTest::Mock
### Minitest::Mock
A simple and clean mock system. There two essential methods at our disposal: expect and verify.
@ -93,7 +93,7 @@ A simple and clean mock system. There two essential methods at our disposal: exp
describe Twipster, "Make every tweet a hipster tweet." do
before do
@twitter = MiniTest::Mock.new
@twitter = Minitest::Mock.new
@twipster = Twipster.new(@twitter)
end