Module: DnsMock::TestFramework::RSpec::Interface
- Defined in:
- lib/dns_mock/test_framework/rspec/interface.rb
Class Method Summary collapse
- .clear_server! ⇒ Object
- .reset_mocks! ⇒ Object
- .start_server(**options) ⇒ Object
- .stop_server! ⇒ Object
Class Method Details
.clear_server! ⇒ Object
24 25 26 |
# File 'lib/dns_mock/test_framework/rspec/interface.rb', line 24 def clear_server! @dns_mock_server = nil end |
.reset_mocks! ⇒ Object
18 19 20 21 22 |
# File 'lib/dns_mock/test_framework/rspec/interface.rb', line 18 def reset_mocks! return unless dns_mock_server dns_mock_server.reset_mocks! end |
.start_server(**options) ⇒ Object
8 9 10 |
# File 'lib/dns_mock/test_framework/rspec/interface.rb', line 8 def start_server(**) @dns_mock_server ||= DnsMock.start_server(**) # rubocop:disable Naming/MemoizedInstanceVariableName end |
.stop_server! ⇒ Object
12 13 14 15 16 |
# File 'lib/dns_mock/test_framework/rspec/interface.rb', line 12 def stop_server! return unless dns_mock_server dns_mock_server.stop! end |