Update to new Minitest namespace synatx (#1027)
This commit is contained in:
parent
5c4b57691f
commit
16588e2efe
|
@ -43,9 +43,9 @@ category: Ruby
|
||||||
proc { ... }.must_raise exception
|
proc { ... }.must_raise exception
|
||||||
proc { ... }.must_throw sym
|
proc { ... }.must_throw sym
|
||||||
|
|
||||||
### Unit::TestCase
|
### Test
|
||||||
|
|
||||||
class TestHipster < MiniTest::Unit::TestCase
|
class TestHipster < Minitest::Test
|
||||||
def setup
|
def setup
|
||||||
@subject = ["silly hats", "skinny jeans"]
|
@subject = ["silly hats", "skinny jeans"]
|
||||||
end
|
end
|
||||||
|
@ -85,7 +85,7 @@ category: Ruby
|
||||||
assert_silent
|
assert_silent
|
||||||
assert_throws
|
assert_throws
|
||||||
|
|
||||||
### MiniTest::Mock
|
### Minitest::Mock
|
||||||
|
|
||||||
A simple and clean mock system. There two essential methods at our disposal: expect and verify.
|
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
|
describe Twipster, "Make every tweet a hipster tweet." do
|
||||||
before do
|
before do
|
||||||
@twitter = MiniTest::Mock.new
|
@twitter = Minitest::Mock.new
|
||||||
@twipster = Twipster.new(@twitter)
|
@twipster = Twipster.new(@twitter)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue