Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #29 from thoughtbot/sg-fix-minitest-integration-ru…

…by-2.0

Make assertions against correct exception class for test framework
  • Loading branch information...
commit e3cb7761a8fc0877473778e12c8efa098288c64a 2 parents dd9eef4 + d1faa09
@sgrif sgrif authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  .travis.yml
  2. +2 −2 test/unit/mockery_test.rb
View
2  .travis.yml
@@ -8,4 +8,4 @@ rvm:
matrix:
allow_failures:
- - rvm: 2.0.0
+ - rvm: rbx-19mode
View
4 test/unit/mockery_test.rb
@@ -32,14 +32,14 @@ def test_should_raise_expectation_error_because_not_all_expectations_are_satisfi
mock_2 = mockery.named_mock('mock-2') { expects(:method_2) }
1.times { mock_1.method_1 }
0.times { mock_2.method_2 }
- assert_raises(ExpectationError) { mockery.verify }
+ assert_raises(ExpectationErrorFactory.exception_class) { mockery.verify }
end
def test_should_reset_list_of_mocks_on_teardown
mockery = Mockery.new
mock = mockery.unnamed_mock { expects(:my_method) }
mockery.teardown
- assert_nothing_raised(ExpectationError) { mockery.verify }
+ assert_nothing_raised(ExpectationErrorFactory.exception_class) { mockery.verify }
end
def test_should_build_instance_of_stubba_on_instantiation
Please sign in to comment.
Something went wrong with that request. Please try again.