Class: Bridges::BridgeTest
- Defined in:
- lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb
Instance Method Summary collapse
- #setup ⇒ Object
- #teardown ⇒ Object
- #test__cds_bridge ⇒ Object
- #test__file_column_bridge ⇒ Object
- #test__shouldnt_throw_errors ⇒ Object
Instance Method Details
#setup ⇒ Object
7 8 9 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb', line 7 def setup @const_store = {} end |
#teardown ⇒ Object
11 12 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb', line 11 def teardown end |
#test__cds_bridge ⇒ Object
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_bridge ⇒ Object
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_errors ⇒ Object
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 |