Class: Bridges::BridgeTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



7
8
9
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb', line 7

def setup
  @const_store = {}
end

#teardownObject



11
12
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb', line 11

def teardown
end

#test__cds_bridgeObject



18
19
20
21
22
23
24
25
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb', line 18

def test__cds_bridge
  ConstMocker.mock("CalendarDateSelect") do |cm|
    cm.remove
    assert(! bridge_will_be_installed("CalendarDateSelect"))
    cm.declare
    assert(bridge_will_be_installed("CalendarDateSelect"))
  end
end

#test__file_column_bridgeObject



27
28
29
30
31
32
33
34
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb', line 27

def test__file_column_bridge
  ConstMocker.mock("FileColumn") do |cm|
    cm.remove
    assert(! bridge_will_be_installed("FileColumn"))
    cm.declare
    assert(bridge_will_be_installed("FileColumn"))
  end
end

#test__shouldnt_throw_errorsObject



14
15
16
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb', line 14

def test__shouldnt_throw_errors
  ActiveScaffold::Bridge.run_all
end