Class: ODDB::State::Interactions::TestResultState

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
test/test_state/interactions/result.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



25
26
27
28
# File 'test/test_state/interactions/result.rb', line 25

def setup
  @session = Mock.new('session') 
  @state = State::Interactions::Result.new(@session, [])
end

- (Object) teardown



29
30
31
# File 'test/test_state/interactions/result.rb', line 29

def teardown
  @session.__verify
end

- (Object) test_empty_list



32
33
34
# File 'test/test_state/interactions/result.rb', line 32

def test_empty_list
  assert_equal(View::Interactions::EmptyResult, @state.default_view)
end