express_templates 0.2.7 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/core_extensions/proc.rb +72 -20
  3. data/lib/express_templates/compiler.rb +9 -1
  4. data/lib/express_templates/components/base.rb +1 -1
  5. data/lib/express_templates/components/capabilities/building.rb +8 -0
  6. data/lib/express_templates/components/capabilities/conditionality.rb +8 -6
  7. data/lib/express_templates/components/capabilities/configurable.rb +3 -4
  8. data/lib/express_templates/components/capabilities/iterating.rb +18 -23
  9. data/lib/express_templates/components/capabilities/parenting.rb +4 -18
  10. data/lib/express_templates/components/capabilities/rendering.rb +2 -65
  11. data/lib/express_templates/components/capabilities/templating.rb +24 -22
  12. data/lib/express_templates/components/capabilities/wrapping.rb +23 -39
  13. data/lib/express_templates/components/column.rb +1 -1
  14. data/lib/express_templates/components/for_each.rb +28 -0
  15. data/lib/express_templates/components/form_for.rb +19 -0
  16. data/lib/express_templates/components/form_rails_support.rb +1 -1
  17. data/lib/express_templates/components/null_wrap.rb +9 -0
  18. data/lib/express_templates/components/row.rb +1 -1
  19. data/lib/express_templates/components/table_for.rb +119 -0
  20. data/lib/express_templates/components/tree_for.rb +41 -0
  21. data/lib/express_templates/components/unless_block.rb +40 -0
  22. data/lib/express_templates/components.rb +4 -0
  23. data/lib/express_templates/expander.rb +15 -4
  24. data/lib/express_templates/indenter.rb +8 -5
  25. data/lib/express_templates/markup/tag.rb +62 -30
  26. data/lib/express_templates/markup/wrapper.rb +1 -1
  27. data/lib/express_templates/version.rb +1 -1
  28. data/test/components/base_test.rb +5 -38
  29. data/test/components/conditionality_test.rb +1 -1
  30. data/test/components/configurable_test.rb +2 -2
  31. data/test/components/container_test.rb +1 -1
  32. data/test/components/iterating_test.rb +30 -9
  33. data/test/components/table_for_test.rb +116 -0
  34. data/test/core_extensions/proc_test.rb +35 -5
  35. data/test/dummy/log/test.log +645 -0
  36. data/test/fixtures/{a_big_page.html → a_big_page2.html} +0 -0
  37. data/test/indenter_test.rb +6 -4
  38. data/test/markup/tag_test.rb +15 -2
  39. data/test/performance_test.rb +1 -1
  40. data/test/test_helper.rb +2 -0
  41. metadata +26 -3
@@ -130915,3 +130915,648 @@ TagTest: test_print_doctype_for_HTML5_document_version
130915
130915
  --------------------------------------------------
130916
130916
  TagTest: test_void_tags_do_not_have_trailing_slash
130917
130917
  --------------------------------------------------
130918
+ --------------------------------------------
130919
+ CompilerTest: test_.compile_returns_a_string
130920
+ --------------------------------------------
130921
+ ---------------------------------------------------
130922
+ IteratingTest: test_#for_each_expands_to_view_logic
130923
+ ---------------------------------------------------
130924
+ ------------------------------------------------------------
130925
+ IteratingTest: test_#for_each_iterates_markup_for_each_value
130926
+ ------------------------------------------------------------
130927
+ -----------------------------------------------------
130928
+ IteratingTest: test_.for_each_offers_declarative_form
130929
+ -----------------------------------------------------
130930
+ ---------------------------------------------------------------
130931
+ IteratingTest: test_.wrap_with_wraps_via__yield_special_handler
130932
+ ---------------------------------------------------------------
130933
+ ----------------------------------------------------------------
130934
+ IteratingTest: test_empty_state_renders_when_collection_is_empty
130935
+ ----------------------------------------------------------------
130936
+ ----------------------------------------------------------------------------------------------------
130937
+ IteratingTest: test_if_collection_is_empty_and_no_empty_fragment_specified,_empty_string_is_rendered
130938
+ ----------------------------------------------------------------------------------------------------
130939
+ ----------------------------------------------------------------------
130940
+ ConfigurableTest: test_a_configurable_component_accepts_an_id_argument
130941
+ ----------------------------------------------------------------------
130942
+ ----------------------------------------------------------------------------
130943
+ ConfigurableTest: test_a_configurable_component_may_have_also_be_a_container
130944
+ ----------------------------------------------------------------------------
130945
+ ----------------------------------------------------
130946
+ ConfigurableTest: test_renders_id_argument_as_dom_id
130947
+ ----------------------------------------------------
130948
+ ---------------------------------------------------------------------------------------------
130949
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
130950
+ ---------------------------------------------------------------------------------------------
130951
+ -----------------------------------------------------------------
130952
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
130953
+ -----------------------------------------------------------------
130954
+ ------------------------------------------------------------------
130955
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
130956
+ ------------------------------------------------------------------
130957
+ ------------------------------------
130958
+ WrapperTest: test_args_are_preserved
130959
+ ------------------------------------
130960
+ -------------------------------------------------------------
130961
+ WrapperTest: test_double-braced_args_are_evaluated_in_context
130962
+ -------------------------------------------------------------
130963
+ -----------------------------------------------------------
130964
+ WrapperTest: test_initializer_block_is_preserved_in_compile
130965
+ -----------------------------------------------------------
130966
+ ---------------------------------------------------------------
130967
+ WrapperTest: test_lambda_option_values_are_evaluated_in_context
130968
+ ---------------------------------------------------------------
130969
+ --------------------------------------------
130970
+ WrapperTest: test_name_compiles_to_just_name
130971
+ --------------------------------------------
130972
+ -------------------------------------------
130973
+ WrapperTest: test_simple_args_are_preserved
130974
+ -------------------------------------------
130975
+ ---------------------------------------------------------------------------------------------
130976
+ WrapperTest: test_something_returning_nil_when_wrapped_and_compiled,_evals_to_an_empty_string
130977
+ ---------------------------------------------------------------------------------------------
130978
+ ------------------------------------------------
130979
+ ProcTest: test_#source_body_handles_funky_bodies
130980
+ ------------------------------------------------
130981
+ ----------------------------------------------------------
130982
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
130983
+ ----------------------------------------------------------
130984
+ ------------------------------------------------------
130985
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
130986
+ ------------------------------------------------------
130987
+ ----------------------------------------------
130988
+ ProcTest: test_#source_returns_a_proc's_source
130989
+ ----------------------------------------------
130990
+ ---------------------------------------------------------------
130991
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
130992
+ ---------------------------------------------------------------
130993
+ ------------------------------------------------------------
130994
+ ProcTest: test_#source_works_with_a_block_containing_a_block
130995
+ ------------------------------------------------------------
130996
+ --------------------------------------------
130997
+ ProcTest: test_#source_works_with_a_do_block
130998
+ --------------------------------------------
130999
+ -----------------------------------------------------
131000
+ ProcTest: test_#source_works_with_a_single_line_block
131001
+ -----------------------------------------------------
131002
+ -------------------------------------------------
131003
+ ProcTest: test_#source_works_with_a_stabby_lambda
131004
+ -------------------------------------------------
131005
+ ----------------------------------------------------------------------------------------
131006
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
131007
+ ----------------------------------------------------------------------------------------
131008
+ -----------------------------------------------
131009
+ YielderTest: test_yielder_preserves_symbol_args
131010
+ -----------------------------------------------
131011
+ --------------------------------------------------------------------
131012
+ ContentForTest: test_content_for_accepts_a_block_of_express_template
131013
+ --------------------------------------------------------------------
131014
+ --------------------------------------------------------------------------------
131015
+ ContentForTest: test_content_for_accepts_a_second_argument_which_contains_markup
131016
+ --------------------------------------------------------------------------------
131017
+ --------------------------------------------------
131018
+ ContentForTest: test_content_for_body_is_html_safe
131019
+ --------------------------------------------------
131020
+ ------------------------------------------------------------------
131021
+ ContentForTest: test_content_for_without_a_body_returns_the_markup
131022
+ ------------------------------------------------------------------
131023
+ ---------------------------------------------------------------------
131024
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
131025
+ ---------------------------------------------------------------------
131026
+ -------------------------------------------
131027
+ ExpressTemplatesTest: test_we_have_a_module
131028
+ -------------------------------------------
131029
+ -----------------------------------
131030
+ RowTest: test_a_row_is_configurable
131031
+ -----------------------------------
131032
+ ----------------------------
131033
+ RowTest: test_id_is_optional
131034
+ ----------------------------
131035
+ --------------------------------------------------
131036
+ PerformanceTest: test_performance_better_than_haml
131037
+ --------------------------------------------------
131038
+ -----------------------------------------
131039
+ PerformanceTest: test_performance_is_okay
131040
+ -----------------------------------------
131041
+ ----------------------------------------------------------------------
131042
+ PerformanceTest: test_performance_no_more_than_3.5x_slower_than_erubis
131043
+ ----------------------------------------------------------------------
131044
+ -------------------------------------------------------------
131045
+ TagTest: test_#close_tag_is_my_macro_name_as_an_xml_close_tag
131046
+ -------------------------------------------------------------
131047
+ --------------------------------------------------------------------------------------------
131048
+ TagTest: test_#compile_on_bare_with_2_children_yields_'"<bare>"+"child1"+"child2"+"</bare>"'
131049
+ --------------------------------------------------------------------------------------------
131050
+ --------------------------------------------------------------------------------------------------------------
131051
+ TagTest: test_#compile_on_tag_with_subtag_returns_a_string_which_when_eval'd_looks_like_'<bare><sub_/></bare>'
131052
+ --------------------------------------------------------------------------------------------------------------
131053
+ ---------------------------------------
131054
+ TagTest: test_#compile_returns_a_string
131055
+ ---------------------------------------
131056
+ -------------------------------------------------------
131057
+ TagTest: test_#macro_name_returns_the_name_of_the_class
131058
+ -------------------------------------------------------
131059
+ -------------------------------------------------------------
131060
+ TagTest: test_#start_tag_is_my_macro_name_as_an_xml_start_tag
131061
+ -------------------------------------------------------------
131062
+ -----------------------------------------------------
131063
+ TagTest: test_#to_template_on_bare_tag_returns_'bare'
131064
+ -----------------------------------------------------
131065
+ -----------------------------------------------------------
131066
+ TagTest: test_#to_template_on_nested_tags_indents_properly'
131067
+ -----------------------------------------------------------
131068
+ ---------------------------------------------------------------------
131069
+ TagTest: test_#to_template_on_tag_with_subtag_returns_'bare_{_sub_}_'
131070
+ ---------------------------------------------------------------------
131071
+ ------------------------------------------------------------------------------------
131072
+ TagTest: test_CSS_classes_specified_with_underscored_method_get_translated_to_dashed
131073
+ ------------------------------------------------------------------------------------
131074
+ ------------------------------------------
131075
+ TagTest: test_can_be_created_with_children
131076
+ ------------------------------------------
131077
+ ---------------------------------------------------------------------------------
131078
+ TagTest: test_children_still_evaluated_after_css_class_provided_via_method_syntax
131079
+ ---------------------------------------------------------------------------------
131080
+ ---------------------------------------------------------------------------------------
131081
+ TagTest: test_data_option_value_hashes_are_converted_to_data_attributes_similar_to_haml
131082
+ ---------------------------------------------------------------------------------------
131083
+ ----------------------------------------------------------------
131084
+ TagTest: test_data_option_value_hashes_can_take_immediate_values
131085
+ ----------------------------------------------------------------
131086
+ ----------------------------------------------
131087
+ TagTest: test_dom_ID_may_be_passed_as_a_symbol
131088
+ ----------------------------------------------
131089
+ -------------------------------------------------------------------------------------
131090
+ TagTest: test_double_bracketed_child_values_are_substituted_for_evaluation_in_context
131091
+ -------------------------------------------------------------------------------------
131092
+ --------------------------------------------------------------------------------------
131093
+ TagTest: test_double_bracketed_option_values_are_substituted_for_evaluation_in_context
131094
+ --------------------------------------------------------------------------------------
131095
+ ---------------------------------------------------------------------------------------
131096
+ TagTest: test_empty_i_tag_does_does_not_use_abbreviated_form_since_it_is_used_for_icons
131097
+ ---------------------------------------------------------------------------------------
131098
+ -------------------------------------------------------
131099
+ TagTest: test_empty_tags_use_abbreviated_empty_tag_form
131100
+ -------------------------------------------------------
131101
+ -----------------------------
131102
+ TagTest: test_has_no_children
131103
+ -----------------------------
131104
+ --------------------------------
131105
+ TagTest: test_markup_is_indented
131106
+ --------------------------------
131107
+ -----------------------------------------
131108
+ TagTest: test_method_missing_returns_self
131109
+ -----------------------------------------
131110
+ ------------------------------------------------------
131111
+ TagTest: test_print_doctype_for_HTML5_document_version
131112
+ ------------------------------------------------------
131113
+ ---------------------------------------------------------
131114
+ TagTest: test_proc_option_values_are_evaluated_in_context
131115
+ ---------------------------------------------------------
131116
+ --------------------------------------------------
131117
+ TagTest: test_void_tags_do_not_have_trailing_slash
131118
+ --------------------------------------------------
131119
+ -----------------------------------------------------------------------------
131120
+ ContainerTest: test_.render_with_children_renders_children_in_place_of__yield
131121
+ -----------------------------------------------------------------------------
131122
+ --------------------------------------------------------------------
131123
+ ContainerTest: test_Container#compile_calls_#compile_on_its_children
131124
+ --------------------------------------------------------------------
131125
+ ----------------------------------------------
131126
+ ContainerTest: test_a_Container_is_a_Component
131127
+ ----------------------------------------------
131128
+ -------------------------------------------------------------------
131129
+ ContainerTest: test_a_container_has_children_but_initially_has_none
131130
+ -------------------------------------------------------------------
131131
+ ---------------------------------------------------------
131132
+ ExpanderStackTest: test_#<<_adds_something_to_the_current
131133
+ ---------------------------------------------------------
131134
+ ----------------------------------------------
131135
+ ExpanderStackTest: test_#all_returns_the_stack
131136
+ ----------------------------------------------
131137
+ --------------------------------
131138
+ ExpanderStackTest: test_#ascend!
131139
+ --------------------------------
131140
+ -----------------------------------------
131141
+ ExpanderStackTest: test_#current_is_empty
131142
+ -----------------------------------------
131143
+ -------------------------------------------------------------------------------
131144
+ ExpanderStackTest: test_#descend!_adds_a_level_to_the_stack_and_updates_current
131145
+ -------------------------------------------------------------------------------
131146
+ -------------------------------------------------------------------------------
131147
+ ConditionalityTest: test_when_supplied_condition_is_false,_renders_empty_string
131148
+ -------------------------------------------------------------------------------
131149
+ -------------------------------------------------------------------------------
131150
+ ConditionalityTest: test_when_supplied_condition_is_true,_renders_the_component
131151
+ -------------------------------------------------------------------------------
131152
+ ---------------------------------------------------------------------
131153
+ ExpanderTest: test_#expand_correctly_allocated_helpers_and_parameters
131154
+ ---------------------------------------------------------------------
131155
+ --------------------------------------------------------
131156
+ ExpanderTest: test_#expand_doesn't_yield_[]_for_children
131157
+ --------------------------------------------------------
131158
+ --------------------------------------------------------------------------------------
131159
+ ExpanderTest: test_#expand_of_'foo_{_bar_;_baz_}_returns_a_component_with_two_children
131160
+ --------------------------------------------------------------------------------------
131161
+ -------------------------------------------------------------------------------------
131162
+ ExpanderTest: test_#expand_of_'foo_{_foo_}_returns_a_component_with_a_child_component
131163
+ -------------------------------------------------------------------------------------
131164
+ ------------------------------------------------------------------------------------
131165
+ ExpanderTest: test_#expand_of_macros_with_args_returns_a_component_with_two_children
131166
+ ------------------------------------------------------------------------------------
131167
+ ------------------------------------------------------------------
131168
+ ExpanderTest: test_#expand_returns_an_array_containing_a_component
131169
+ ------------------------------------------------------------------
131170
+ ------------------------------------------------------------------------
131171
+ ExpanderTest: test_#expand_works_with_css_class_specification_syntax_xxx
131172
+ ------------------------------------------------------------------------
131173
+ ------------------------------------------
131174
+ ExpanderTest: test_helpers_can_take_blocks
131175
+ ------------------------------------------
131176
+ ------------------------------------------------------------
131177
+ ExpanderTest: test_initializer_accepts_special_handlers_hash
131178
+ ------------------------------------------------------------
131179
+ ----------------------------------------------------------------------------------------------------------------
131180
+ ExpanderTest: test_non-interpolated_string_children_containing_string_interpolations_will_interpolate_in_context
131181
+ ----------------------------------------------------------------------------------------------------------------
131182
+ -----------------------------------------------------------------------------------------
131183
+ BaseTest: test_.has_markup_makes_compile_return_the_block_passed_through_express_compiled
131184
+ -----------------------------------------------------------------------------------------
131185
+ -------------------------------------------------------
131186
+ BaseTest: test_components_register_themselves_as_macros
131187
+ -------------------------------------------------------
131188
+ --------------------------------------------------------------------
131189
+ BaseTest: test_helpers_defined_in_component_are_evaluated_in_context
131190
+ --------------------------------------------------------------------
131191
+ -----------------------------
131192
+ HandlerTest: test_class_names
131193
+ -----------------------------
131194
+ --------------------------------------------------------------
131195
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
131196
+ --------------------------------------------------------------
131197
+ ------------------------------------------------------------------------
131198
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
131199
+ ------------------------------------------------------------------------
131200
+ ----------------------------------------------------------
131201
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
131202
+ ----------------------------------------------------------
131203
+ -----------------------------
131204
+ HandlerTest: test_locals_work
131205
+ -----------------------------
131206
+ ------------------------------------------------------------
131207
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
131208
+ ------------------------------------------------------------
131209
+ ----------------------------------
131210
+ HandlerTest: test_other_attributes
131211
+ ----------------------------------
131212
+ -------------------------------------------
131213
+ HandlerTest: test_our_handler_is_registered
131214
+ -------------------------------------------
131215
+ ---------------------------------------
131216
+ HandlerTest: test_string_in_block_works
131217
+ ---------------------------------------
131218
+ -------------------------------------------------------------
131219
+ TableForTest: test_compiled_source_is_legible_and_transparent
131220
+ -------------------------------------------------------------
131221
+ ----------------------------------------------------------------------------
131222
+ TableForTest: test_example_compiled_source_renders_the_markup_in_the_context
131223
+ ----------------------------------------------------------------------------
131224
+ ----------------------------------------------------------------
131225
+ TableForTest: test_example_view_code_evaluates_to_example_markup
131226
+ ----------------------------------------------------------------
131227
+ ------------------------------------------------------------
131228
+ TableForTest: test_rendered_component_matches_desired_markup
131229
+ ------------------------------------------------------------
131230
+ -----------------------------------------
131231
+ ColumnTest: test_a_column_is_configurable
131232
+ -----------------------------------------
131233
+ -----------------------------------------
131234
+ HelloControllerTest: test_should_get_show
131235
+ -----------------------------------------
131236
+ Processing by HelloController#show as HTML
131237
+ Rendered hello/show.html.et within layouts/application (0.7ms)
131238
+ Completed 200 OK in 19ms (Views: 18.4ms)
131239
+ ---------------------------------------------------------------------------------------------
131240
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
131241
+ ---------------------------------------------------------------------------------------------
131242
+ -----------------------------------------------------------------
131243
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
131244
+ -----------------------------------------------------------------
131245
+ ------------------------------------------------------------------
131246
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
131247
+ ------------------------------------------------------------------
131248
+ -----------------------------------------------------------------------------------------
131249
+ BaseTest: test_.has_markup_makes_compile_return_the_block_passed_through_express_compiled
131250
+ -----------------------------------------------------------------------------------------
131251
+ -------------------------------------------------------
131252
+ BaseTest: test_components_register_themselves_as_macros
131253
+ -------------------------------------------------------
131254
+ --------------------------------------------------------------
131255
+ BaseTest: test_fragments_and_has_markup_are_synonyms_for_emits
131256
+ --------------------------------------------------------------
131257
+ --------------------------------------------------------------------
131258
+ BaseTest: test_helpers_defined_in_component_are_evaluated_in_context
131259
+ --------------------------------------------------------------------
131260
+ ---------------------------------------------------------------------
131261
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
131262
+ ---------------------------------------------------------------------
131263
+ -------------------------------------------
131264
+ ExpressTemplatesTest: test_we_have_a_module
131265
+ -------------------------------------------
131266
+ --------------------------------------------
131267
+ CompilerTest: test_.compile_returns_a_string
131268
+ --------------------------------------------
131269
+ -----------------------------------------------
131270
+ YielderTest: test_yielder_preserves_symbol_args
131271
+ -----------------------------------------------
131272
+ -----------------------------------
131273
+ RowTest: test_a_row_is_configurable
131274
+ -----------------------------------
131275
+ ----------------------------
131276
+ RowTest: test_id_is_optional
131277
+ ----------------------------
131278
+ -------------------------------------------------------------
131279
+ TagTest: test_#close_tag_is_my_macro_name_as_an_xml_close_tag
131280
+ -------------------------------------------------------------
131281
+ --------------------------------------------------------------------------------------------
131282
+ TagTest: test_#compile_on_bare_with_2_children_yields_'"<bare>"+"child1"+"child2"+"</bare>"'
131283
+ --------------------------------------------------------------------------------------------
131284
+ --------------------------------------------------------------------------------------------------------------
131285
+ TagTest: test_#compile_on_tag_with_subtag_returns_a_string_which_when_eval'd_looks_like_'<bare><sub_/></bare>'
131286
+ --------------------------------------------------------------------------------------------------------------
131287
+ ---------------------------------------
131288
+ TagTest: test_#compile_returns_a_string
131289
+ ---------------------------------------
131290
+ -------------------------------------------------------
131291
+ TagTest: test_#macro_name_returns_the_name_of_the_class
131292
+ -------------------------------------------------------
131293
+ -------------------------------------------------------------
131294
+ TagTest: test_#start_tag_is_my_macro_name_as_an_xml_start_tag
131295
+ -------------------------------------------------------------
131296
+ -----------------------------------------------------
131297
+ TagTest: test_#to_template_on_bare_tag_returns_'bare'
131298
+ -----------------------------------------------------
131299
+ -----------------------------------------------------------
131300
+ TagTest: test_#to_template_on_nested_tags_indents_properly'
131301
+ -----------------------------------------------------------
131302
+ ---------------------------------------------------------------------
131303
+ TagTest: test_#to_template_on_tag_with_subtag_returns_'bare_{_sub_}_'
131304
+ ---------------------------------------------------------------------
131305
+ ------------------------------------------------------------------------------------
131306
+ TagTest: test_CSS_classes_specified_with_underscored_method_get_translated_to_dashed
131307
+ ------------------------------------------------------------------------------------
131308
+ ------------------------------------------
131309
+ TagTest: test_can_be_created_with_children
131310
+ ------------------------------------------
131311
+ ---------------------------------------------------------------------------------
131312
+ TagTest: test_children_still_evaluated_after_css_class_provided_via_method_syntax
131313
+ ---------------------------------------------------------------------------------
131314
+ ---------------------------------------------------------------------------------------
131315
+ TagTest: test_data_option_value_hashes_are_converted_to_data_attributes_similar_to_haml
131316
+ ---------------------------------------------------------------------------------------
131317
+ ----------------------------------------------------------------
131318
+ TagTest: test_data_option_value_hashes_can_take_immediate_values
131319
+ ----------------------------------------------------------------
131320
+ ----------------------------------------------
131321
+ TagTest: test_dom_ID_may_be_passed_as_a_symbol
131322
+ ----------------------------------------------
131323
+ -------------------------------------------------------------------------------------
131324
+ TagTest: test_double_bracketed_child_values_are_substituted_for_evaluation_in_context
131325
+ -------------------------------------------------------------------------------------
131326
+ --------------------------------------------------------------------------------------
131327
+ TagTest: test_double_bracketed_option_values_are_substituted_for_evaluation_in_context
131328
+ --------------------------------------------------------------------------------------
131329
+ ---------------------------------------------------------------------------------------
131330
+ TagTest: test_empty_i_tag_does_does_not_use_abbreviated_form_since_it_is_used_for_icons
131331
+ ---------------------------------------------------------------------------------------
131332
+ -------------------------------------------------------
131333
+ TagTest: test_empty_tags_use_abbreviated_empty_tag_form
131334
+ -------------------------------------------------------
131335
+ -----------------------------
131336
+ TagTest: test_has_no_children
131337
+ -----------------------------
131338
+ --------------------------------
131339
+ TagTest: test_markup_is_indented
131340
+ --------------------------------
131341
+ -----------------------------------------
131342
+ TagTest: test_method_missing_returns_self
131343
+ -----------------------------------------
131344
+ ------------------------------------------------------
131345
+ TagTest: test_print_doctype_for_HTML5_document_version
131346
+ ------------------------------------------------------
131347
+ ---------------------------------------------------------
131348
+ TagTest: test_proc_option_values_are_evaluated_in_context
131349
+ ---------------------------------------------------------
131350
+ --------------------------------------------------
131351
+ TagTest: test_void_tags_do_not_have_trailing_slash
131352
+ --------------------------------------------------
131353
+ -------------------------------------------------------------
131354
+ TableForTest: test_compiled_source_is_legible_and_transparent
131355
+ -------------------------------------------------------------
131356
+ ----------------------------------------------------------------------------
131357
+ TableForTest: test_example_compiled_source_renders_the_markup_in_the_context
131358
+ ----------------------------------------------------------------------------
131359
+ ----------------------------------------------------------------
131360
+ TableForTest: test_example_view_code_evaluates_to_example_markup
131361
+ ----------------------------------------------------------------
131362
+ ------------------------------------------------------------
131363
+ TableForTest: test_rendered_component_matches_desired_markup
131364
+ ------------------------------------------------------------
131365
+ ------------------------------------
131366
+ WrapperTest: test_args_are_preserved
131367
+ ------------------------------------
131368
+ -------------------------------------------------------------
131369
+ WrapperTest: test_double-braced_args_are_evaluated_in_context
131370
+ -------------------------------------------------------------
131371
+ -----------------------------------------------------------
131372
+ WrapperTest: test_initializer_block_is_preserved_in_compile
131373
+ -----------------------------------------------------------
131374
+ ---------------------------------------------------------------
131375
+ WrapperTest: test_lambda_option_values_are_evaluated_in_context
131376
+ ---------------------------------------------------------------
131377
+ --------------------------------------------
131378
+ WrapperTest: test_name_compiles_to_just_name
131379
+ --------------------------------------------
131380
+ -------------------------------------------
131381
+ WrapperTest: test_simple_args_are_preserved
131382
+ -------------------------------------------
131383
+ ---------------------------------------------------------------------------------------------
131384
+ WrapperTest: test_something_returning_nil_when_wrapped_and_compiled,_evals_to_an_empty_string
131385
+ ---------------------------------------------------------------------------------------------
131386
+ ----------------------------------------------------------------------
131387
+ ConfigurableTest: test_a_configurable_component_accepts_an_id_argument
131388
+ ----------------------------------------------------------------------
131389
+ ----------------------------------------------------------------------------
131390
+ ConfigurableTest: test_a_configurable_component_may_have_also_be_a_container
131391
+ ----------------------------------------------------------------------------
131392
+ ----------------------------------------------------
131393
+ ConfigurableTest: test_renders_id_argument_as_dom_id
131394
+ ----------------------------------------------------
131395
+ -----------------------------------------
131396
+ HelloControllerTest: test_should_get_show
131397
+ -----------------------------------------
131398
+ Processing by HelloController#show as HTML
131399
+ Rendered hello/show.html.et within layouts/application (0.8ms)
131400
+ Completed 200 OK in 20ms (Views: 19.4ms)
131401
+ ---------------------------------------------------------
131402
+ ExpanderStackTest: test_#<<_adds_something_to_the_current
131403
+ ---------------------------------------------------------
131404
+ ----------------------------------------------
131405
+ ExpanderStackTest: test_#all_returns_the_stack
131406
+ ----------------------------------------------
131407
+ --------------------------------
131408
+ ExpanderStackTest: test_#ascend!
131409
+ --------------------------------
131410
+ -----------------------------------------
131411
+ ExpanderStackTest: test_#current_is_empty
131412
+ -----------------------------------------
131413
+ -------------------------------------------------------------------------------
131414
+ ExpanderStackTest: test_#descend!_adds_a_level_to_the_stack_and_updates_current
131415
+ -------------------------------------------------------------------------------
131416
+ -----------------------------------------------------------------------------
131417
+ ContainerTest: test_.render_with_children_renders_children_in_place_of__yield
131418
+ -----------------------------------------------------------------------------
131419
+ --------------------------------------------------------------------
131420
+ ContainerTest: test_Container#compile_calls_#compile_on_its_children
131421
+ --------------------------------------------------------------------
131422
+ ----------------------------------------------
131423
+ ContainerTest: test_a_Container_is_a_Component
131424
+ ----------------------------------------------
131425
+ -------------------------------------------------------------------
131426
+ ContainerTest: test_a_container_has_children_but_initially_has_none
131427
+ -------------------------------------------------------------------
131428
+ --------------------------------------------------------------------
131429
+ ContentForTest: test_content_for_accepts_a_block_of_express_template
131430
+ --------------------------------------------------------------------
131431
+ --------------------------------------------------------------------------------
131432
+ ContentForTest: test_content_for_accepts_a_second_argument_which_contains_markup
131433
+ --------------------------------------------------------------------------------
131434
+ --------------------------------------------------
131435
+ ContentForTest: test_content_for_body_is_html_safe
131436
+ --------------------------------------------------
131437
+ ------------------------------------------------------------------
131438
+ ContentForTest: test_content_for_without_a_body_returns_the_markup
131439
+ ------------------------------------------------------------------
131440
+ ------------------------------------------------
131441
+ ProcTest: test_#source_body_handles_funky_bodies
131442
+ ------------------------------------------------
131443
+ ----------------------------------------------------------
131444
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
131445
+ ----------------------------------------------------------
131446
+ ------------------------------------------------------
131447
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
131448
+ ------------------------------------------------------
131449
+ ----------------------------------------------
131450
+ ProcTest: test_#source_returns_a_proc's_source
131451
+ ----------------------------------------------
131452
+ ---------------------------------------------------------------
131453
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
131454
+ ---------------------------------------------------------------
131455
+ ------------------------------------------------------------
131456
+ ProcTest: test_#source_works_with_a_block_containing_a_block
131457
+ ------------------------------------------------------------
131458
+ --------------------------------------------
131459
+ ProcTest: test_#source_works_with_a_do_block
131460
+ --------------------------------------------
131461
+ -----------------------------------------------------
131462
+ ProcTest: test_#source_works_with_a_single_line_block
131463
+ -----------------------------------------------------
131464
+ -------------------------------------------------
131465
+ ProcTest: test_#source_works_with_a_stabby_lambda
131466
+ -------------------------------------------------
131467
+ ----------------------------------------------------------------------------------------
131468
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
131469
+ ----------------------------------------------------------------------------------------
131470
+ -------------------------------------------------------------------------------
131471
+ ConditionalityTest: test_when_supplied_condition_is_false,_renders_empty_string
131472
+ -------------------------------------------------------------------------------
131473
+ -------------------------------------------------------------------------------
131474
+ ConditionalityTest: test_when_supplied_condition_is_true,_renders_the_component
131475
+ -------------------------------------------------------------------------------
131476
+ ---------------------------------------------------
131477
+ IteratingTest: test_#for_each_expands_to_view_logic
131478
+ ---------------------------------------------------
131479
+ ------------------------------------------------------------
131480
+ IteratingTest: test_#for_each_iterates_markup_for_each_value
131481
+ ------------------------------------------------------------
131482
+ -----------------------------------------------------
131483
+ IteratingTest: test_.for_each_offers_declarative_form
131484
+ -----------------------------------------------------
131485
+ ---------------------------------------------------------------
131486
+ IteratingTest: test_.wrap_with_wraps_via__yield_special_handler
131487
+ ---------------------------------------------------------------
131488
+ ----------------------------------------------------------------
131489
+ IteratingTest: test_empty_state_renders_when_collection_is_empty
131490
+ ----------------------------------------------------------------
131491
+ ----------------------------------------------------------------------------------------------------
131492
+ IteratingTest: test_if_collection_is_empty_and_no_empty_fragment_specified,_empty_string_is_rendered
131493
+ ----------------------------------------------------------------------------------------------------
131494
+ -----------------------------------------
131495
+ ColumnTest: test_a_column_is_configurable
131496
+ -----------------------------------------
131497
+ ---------------------------------------------------------------------
131498
+ ExpanderTest: test_#expand_correctly_allocated_helpers_and_parameters
131499
+ ---------------------------------------------------------------------
131500
+ --------------------------------------------------------
131501
+ ExpanderTest: test_#expand_doesn't_yield_[]_for_children
131502
+ --------------------------------------------------------
131503
+ --------------------------------------------------------------------------------------
131504
+ ExpanderTest: test_#expand_of_'foo_{_bar_;_baz_}_returns_a_component_with_two_children
131505
+ --------------------------------------------------------------------------------------
131506
+ -------------------------------------------------------------------------------------
131507
+ ExpanderTest: test_#expand_of_'foo_{_foo_}_returns_a_component_with_a_child_component
131508
+ -------------------------------------------------------------------------------------
131509
+ ------------------------------------------------------------------------------------
131510
+ ExpanderTest: test_#expand_of_macros_with_args_returns_a_component_with_two_children
131511
+ ------------------------------------------------------------------------------------
131512
+ ------------------------------------------------------------------
131513
+ ExpanderTest: test_#expand_returns_an_array_containing_a_component
131514
+ ------------------------------------------------------------------
131515
+ ------------------------------------------------------------------------
131516
+ ExpanderTest: test_#expand_works_with_css_class_specification_syntax_xxx
131517
+ ------------------------------------------------------------------------
131518
+ ------------------------------------------
131519
+ ExpanderTest: test_helpers_can_take_blocks
131520
+ ------------------------------------------
131521
+ ------------------------------------------------------------
131522
+ ExpanderTest: test_initializer_accepts_special_handlers_hash
131523
+ ------------------------------------------------------------
131524
+ ----------------------------------------------------------------------------------------------------------------
131525
+ ExpanderTest: test_non-interpolated_string_children_containing_string_interpolations_will_interpolate_in_context
131526
+ ----------------------------------------------------------------------------------------------------------------
131527
+ --------------------------------------------------
131528
+ PerformanceTest: test_performance_better_than_haml
131529
+ --------------------------------------------------
131530
+ -----------------------------------------
131531
+ PerformanceTest: test_performance_is_okay
131532
+ -----------------------------------------
131533
+ ----------------------------------------------------------------------
131534
+ PerformanceTest: test_performance_no_more_than_3.5x_slower_than_erubis
131535
+ ----------------------------------------------------------------------
131536
+ -----------------------------
131537
+ HandlerTest: test_class_names
131538
+ -----------------------------
131539
+ --------------------------------------------------------------
131540
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
131541
+ --------------------------------------------------------------
131542
+ ------------------------------------------------------------------------
131543
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
131544
+ ------------------------------------------------------------------------
131545
+ ----------------------------------------------------------
131546
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
131547
+ ----------------------------------------------------------
131548
+ -----------------------------
131549
+ HandlerTest: test_locals_work
131550
+ -----------------------------
131551
+ ------------------------------------------------------------
131552
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
131553
+ ------------------------------------------------------------
131554
+ ----------------------------------
131555
+ HandlerTest: test_other_attributes
131556
+ ----------------------------------
131557
+ -------------------------------------------
131558
+ HandlerTest: test_our_handler_is_registered
131559
+ -------------------------------------------
131560
+ ---------------------------------------
131561
+ HandlerTest: test_string_in_block_works
131562
+ ---------------------------------------
File without changes