Skip to content

Commit

Permalink
WIP: Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
floehopper committed Mar 27, 2018
1 parent 1da71b9 commit 6f43b95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit/mockery_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ class MockeryTest < Mocha::TestCase
include Mocha
include DeprecationDisabler

def test_should_return_null_mockery_if_not_built
mockery = Mockery.instance
assert_not_nil mockery
assert_kind_of Mockery::Null, mockery
end

def test_should_build_instance_of_mockery
Mockery.build_instance
mockery = Mockery.instance
assert_not_nil mockery
assert_kind_of Mockery, mockery
Expand Down
2 changes: 2 additions & 0 deletions test/unit/object_methods_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
require 'mocha/object_methods'
require 'mocha/mock'
require 'mocha/expectation_error_factory'
require 'mocha/mockery'

class ObjectMethodsTest < Mocha::TestCase

def setup
Mocha::Mockery.build_instance
@object = Object.new.extend(Mocha::ObjectMethods)
end

Expand Down

0 comments on commit 6f43b95

Please sign in to comment.