Module: Snapsync::SelfTest

Includes:
FlexMock::ArgumentTypes, FlexMock::MockContainer
Defined in:
lib/snapsync/test.rb

Overview

This module is the common setup for all tests

It should be included in the toplevel describe blocks

Examples:

require 'snapsync/test'
describe Snapsync do
  include Snapsync::SelfTest
end

Instance Method Summary collapse

Instance Method Details

#setupObject



46
47
48
# File 'lib/snapsync/test.rb', line 46

def setup
    # Setup code for all the tests
end

#teardownObject



50
51
52
53
54
55
56
# File 'lib/snapsync/test.rb', line 50

def teardown
    if defined? FlexMock
        flexmock_teardown
    end
    super
    # Teardown code for all the tests
end