Class: ODDB::TestSmjPlugin

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
test/test_plugin/swissmedicjournal.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



16
17
18
19
20
# File 'test/test_plugin/swissmedicjournal.rb', line 16

def setup
  @app = FlexMock.new
  @app.should_receive :registration
  @plugin = ODDB::SwissmedicJournalPlugin.new(@app)
end

- (Object) test_log_info



24
25
26
27
28
29
30
# File 'test/test_plugin/swissmedicjournal.rb', line 24

def test_log_info
  @app.should_receive(:atcless_sequences).and_return { [] }
  info = @plugin.log_info
  [:report, :change_flags, :recipients].each { |key|
    assert(info.include?(key))
  }
end

- (Object) test_update



21
22
23
# File 'test/test_plugin/swissmedicjournal.rb', line 21

def test_update
  assert_respond_to(@plugin, :update)
end