express_templates 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16f46943cd687967eb9ed04ce0beaa6cff6d251a
4
- data.tar.gz: 04be2d8eae0f12e801b87ba6dfa23367e2c20642
3
+ metadata.gz: 9db9820dd106746a62d12884baa1ddf142b779f0
4
+ data.tar.gz: 69057e642521690e13fd7859e068eb935498e987
5
5
  SHA512:
6
- metadata.gz: b6bbead39fc3d366d5c11050a2b4b39aa9989f258b9fe5924824b3caa577227b729dfed4abbd66978f9c9bd270831e6b0c24b97cf07949439be5522bcd884aad
7
- data.tar.gz: 9cd09d8d5fcc54f8e261a09bb4836d14242b14de4e56947c0e0c8e17907b0cc0635640b0e66dc73d12e21e2b2bf5744baec084b69ce024a2392ef52ba9a5c129
6
+ metadata.gz: 10408221b9075cccfdc2c1619202defe7a4524404f045236d9af046ca168734905e02b3185f587c91f0965c55f398bb80d52fc2e2c1b91216eb036230b3615db
7
+ data.tar.gz: 8672d0ae9224d3c9662fcdfd21afb94b04a68d9b6e251f5ae7d4b0e86772ae96944b95a2304853254088bd01fde81d837f72e0140e31a124eb848311e0f20331
data/lib/arbre/patches.rb CHANGED
@@ -39,12 +39,24 @@ module Arbre
39
39
  elsif assigns && assigns.has_key?(name)
40
40
  assigns[name]
41
41
  elsif helpers.respond_to?(name)
42
- current_arbre_element.add_child helpers.send(name, *args, &block)
42
+ helper_method(name, *args, &block)
43
43
  else
44
44
  super
45
45
  end
46
46
  end
47
47
 
48
+ # In order to not pollute our templates with helpers. prefixed
49
+ # everywhere we want to try to distinguish helpers that are almost
50
+ # always used as parameters to other methods such as path helpers
51
+ # and not add them as elements
52
+ def helper_method(name, *args, &block)
53
+ if name.match /_path$/
54
+ helpers.send(name, *args, &block)
55
+ else
56
+ current_arbre_element.add_child helpers.send(name, *args, &block)
57
+ end
58
+ end
59
+
48
60
  end
49
61
 
50
62
  end
@@ -97,7 +97,15 @@ module ExpressTemplates
97
97
  end
98
98
 
99
99
  def collection
100
- config[:collection] || helpers.collection
100
+ if config[:collection]
101
+ if config[:collection].respond_to?(:call)
102
+ config[:collection].call()
103
+ else
104
+ config[:collection]
105
+ end
106
+ else
107
+ helpers.collection
108
+ end
101
109
  end
102
110
 
103
111
  def collection_path
@@ -37,7 +37,7 @@ module ExpressTemplates
37
37
  def use_supplied_options
38
38
  opts = supplied_component_options[:options]
39
39
  if opts.respond_to?(:call) # can be a proc
40
- opts.call()
40
+ opts.call(resource)
41
41
  else
42
42
  opts
43
43
  end
@@ -47,9 +47,23 @@ module ExpressTemplates
47
47
  resource.class.distinct(field_name.to_sym).pluck(field_name.to_sym)
48
48
  end
49
49
 
50
+ def normalize_for_helper(supplied_options)
51
+ supplied_options.map do |opt|
52
+ [opt.respond_to?(:name) ? opt.name : opt.to_s,
53
+ opt.respond_to?(:id) ? opt.id : opt.to_s]
54
+ end
55
+ end
56
+
57
+ def selected_value
58
+ field_options[:selected]||resource.send(field_name)
59
+ end
60
+
50
61
  def options_from_supplied_or_field_values
51
62
  if select_options_supplied?
52
- use_supplied_options
63
+ helpers.options_for_select(
64
+ normalize_for_helper(use_supplied_options),
65
+ selected_value
66
+ )
53
67
  else
54
68
  generate_options_from_field_values
55
69
  end
@@ -68,11 +82,7 @@ module ExpressTemplates
68
82
  end
69
83
 
70
84
  def simple_options_with_selection
71
- if selection = field_options[:selected]
72
- helpers.options_for_select(options_from_supplied_or_field_values, selection)
73
- else
74
- helpers.options_for_select(options_from_supplied_or_field_values, resource.send(field_name))
75
- end
85
+ helpers.options_for_select(options_from_supplied_or_field_values, selected_value)
76
86
  end
77
87
 
78
88
  # Returns the options which will be supplied to the select_tag helper.
@@ -8,7 +8,7 @@ module ExpressTemplates
8
8
  if args.first.is_a?(String) or args.empty?
9
9
  submit_tag(args.first || 'Save', (args[1]||{}))
10
10
  else
11
- submit_tag 'Save', (args[1] || {})
11
+ submit_tag 'Save', (args.first || {})
12
12
  end
13
13
  }
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module ExpressTemplates
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -40,7 +40,7 @@ class ExpressFormTest < ActiveSupport::TestCase
40
40
  end
41
41
 
42
42
  test "simplest_form contains submit" do
43
- assert_match '<input type="submit" name="commit" value="Save" />', simplest_form
43
+ assert_match '<input type="submit" name="commit" value="Save it!" />', simplest_form
44
44
  end
45
45
 
46
46
  test "simplest_form uses form_action for the action" do
@@ -24,7 +24,7 @@ class SelectTest < ActiveSupport::TestCase
24
24
  assert_match /<label.*for="person_gender"/, html
25
25
  end
26
26
 
27
- test "select generates correct options when values are specified" do
27
+ test "select generates correct options when values are specified as array" do
28
28
  html = arbre {
29
29
  express_form(:person) {
30
30
  select :gender, options: ['Male', 'Female'], selected: 'Male'
@@ -11,7 +11,22 @@ class SubmitTest < ActiveSupport::TestCase
11
11
  fragment = -> (ctx) {
12
12
  submit "Save it!"
13
13
  }
14
- assert_match '<div class="field-wrapper"><input type="submit" name="commit" value="Save it!" /></div>',
14
+ assert_match '<div class="field-wrapper"><input type="submit" name="commit" value="Save it!" /></div>',
15
15
  arbre(&fragment)
16
16
  end
17
+ test "submit accepts a class option" do
18
+ fragment = -> (ctx) {
19
+ submit class: 'button'
20
+ }
21
+ assert_match '<div class="field-wrapper"><input type="submit" name="commit" value="Save" class="button" /></div>',
22
+ arbre(&fragment)
23
+ end
24
+ test "submit accepts a class option when string provided as first param" do
25
+ fragment = -> (ctx) {
26
+ submit 'XYZ', class: 'button'
27
+ }
28
+ assert_match '<div class="field-wrapper"><input type="submit" name="commit" value="XYZ" class="button" /></div>',
29
+ arbre(&fragment)
30
+ end
31
+
17
32
  end
@@ -20281,3 +20281,1578 @@ TreeForTest: test_tree_for_accepts_block_with_custom_content
20281
20281
  ------------------------------------------------------------
20282
20282
  TreeForTest: test_tree_for_accepts_block_with_custom_content
20283
20283
  ------------------------------------------------------------
20284
+ ------------------------------------------------------------
20285
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
20286
+ ------------------------------------------------------------
20287
+ ---------------------------------------------------------------------------
20288
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
20289
+ ---------------------------------------------------------------------------
20290
+ ---------------------------------------------------------------
20291
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
20292
+ ---------------------------------------------------------------
20293
+ ---------------------------------------------------------
20294
+ ExpressFormTest: test_express_form_default_method_is_POST
20295
+ ---------------------------------------------------------
20296
+ -----------------------------------------------------
20297
+ ExpressFormTest: test_simplest_form_contains_form_tag
20298
+ -----------------------------------------------------
20299
+ ---------------------------------------------------------------
20300
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
20301
+ ---------------------------------------------------------------
20302
+ ---------------------------------------------------
20303
+ ExpressFormTest: test_simplest_form_contains_submit
20304
+ ---------------------------------------------------
20305
+ -------------------------------------------
20306
+ ExpressFormTest: test_simplest_form_renders
20307
+ -------------------------------------------
20308
+ -------------------------------------------------------------------
20309
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
20310
+ -------------------------------------------------------------------
20311
+ ------------------------------------------------
20312
+ ProcTest: test_#source_body_handles_funky_bodies
20313
+ ------------------------------------------------
20314
+ ----------------------------------------------------------
20315
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
20316
+ ----------------------------------------------------------
20317
+ ------------------------------------------------------
20318
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
20319
+ ------------------------------------------------------
20320
+ ----------------------------------------------
20321
+ ProcTest: test_#source_returns_a_proc's_source
20322
+ ----------------------------------------------
20323
+ ---------------------------------------------------------------
20324
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
20325
+ ---------------------------------------------------------------
20326
+ ------------------------------------------------------------
20327
+ ProcTest: test_#source_works_with_a_block_containing_a_block
20328
+ ------------------------------------------------------------
20329
+ --------------------------------------------
20330
+ ProcTest: test_#source_works_with_a_do_block
20331
+ --------------------------------------------
20332
+ -----------------------------------------------------
20333
+ ProcTest: test_#source_works_with_a_single_line_block
20334
+ -----------------------------------------------------
20335
+ -------------------------------------------------
20336
+ ProcTest: test_#source_works_with_a_stabby_lambda
20337
+ -------------------------------------------------
20338
+ ----------------------------------------------------------------------------------------
20339
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
20340
+ ----------------------------------------------------------------------------------------
20341
+ --------------------------------------------------------------------------------------------------
20342
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
20343
+ --------------------------------------------------------------------------------------------------
20344
+ -----------------------------------------------------------------------------------------
20345
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
20346
+ -----------------------------------------------------------------------------------------
20347
+ ---------------------------------------------------------------------------------------------------
20348
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
20349
+ ---------------------------------------------------------------------------------------------------
20350
+ ------------------------------------------------------------------------------------------------
20351
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
20352
+ ------------------------------------------------------------------------------------------------
20353
+ -----------------------------------------------------------------------------
20354
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
20355
+ -----------------------------------------------------------------------------
20356
+ -------------------------------------------------------------
20357
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
20358
+ -------------------------------------------------------------
20359
+ -------------------------------------------------------
20360
+ CheckboxTest: test_checkbox_respects_label_after:_true_
20361
+ -------------------------------------------------------
20362
+ -----------------------------------------------------------------------------------------
20363
+ BaseTest: test_.has_markup_makes_compile_return_the_block_passed_through_express_compiled
20364
+ -----------------------------------------------------------------------------------------
20365
+ ----------------------------------------------------------------------
20366
+ BaseTest: test_components_register_themselves_as_arbre_builder_methods
20367
+ ----------------------------------------------------------------------
20368
+ --------------------------------------------------------------------
20369
+ BaseTest: test_helpers_defined_in_component_are_evaluated_in_context
20370
+ --------------------------------------------------------------------
20371
+ ---------------------------------------------------------------------------------------------
20372
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
20373
+ ---------------------------------------------------------------------------------------------
20374
+ -----------------------------------------------------------------
20375
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
20376
+ -----------------------------------------------------------------
20377
+ ------------------------------------------------------------------
20378
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
20379
+ ------------------------------------------------------------------
20380
+ -------------------------------------
20381
+ BasicFieldsTest: test_all_fields_work
20382
+ -------------------------------------
20383
+ ---------------------------------------------------------------------------------
20384
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
20385
+ ---------------------------------------------------------------------------------
20386
+ ---------------------------------------------------------
20387
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
20388
+ ---------------------------------------------------------
20389
+ ---------------------------------------------------------
20390
+ BasicFieldsTest: test_passing_html_options_to_fields_work
20391
+ ---------------------------------------------------------
20392
+ -----------------------------------------------------------------------------
20393
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
20394
+ -----------------------------------------------------------------------------
20395
+ ----------------------------------------------------------
20396
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
20397
+ ----------------------------------------------------------
20398
+ ----------------------------------------------------------------------------
20399
+ ConfigurableTest: test_a_configurable_component_may_have_also_be_a_container
20400
+ ----------------------------------------------------------------------------
20401
+ ----------------------------------------------------
20402
+ ConfigurableTest: test_renders_id_argument_as_dom_id
20403
+ ----------------------------------------------------
20404
+ ----------------------------------------------------
20405
+ SubmitTest: test_submit_takes_string_param_for_value
20406
+ ----------------------------------------------------
20407
+ ------------------------------------------------------------------------------------
20408
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
20409
+ ------------------------------------------------------------------------------------
20410
+ --------------------------------------------------------------------------------
20411
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
20412
+ --------------------------------------------------------------------------------
20413
+ -------------------------------------------------------
20414
+ StringTest: test_String#to_view_code_returns_the_string
20415
+ -------------------------------------------------------
20416
+ --------------------------------------------------------------
20417
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
20418
+ --------------------------------------------------------------
20419
+ ------------------------------------------------------------------------
20420
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
20421
+ ------------------------------------------------------------------------
20422
+ ----------------------------------------------------------
20423
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
20424
+ ----------------------------------------------------------
20425
+ -----------------------------
20426
+ HandlerTest: test_locals_work
20427
+ -----------------------------
20428
+ ------------------------------------------------------------
20429
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
20430
+ ------------------------------------------------------------
20431
+ ----------------------------------
20432
+ HandlerTest: test_other_attributes
20433
+ ----------------------------------
20434
+ -------------------------------------------
20435
+ HandlerTest: test_our_handler_is_registered
20436
+ -------------------------------------------
20437
+ ---------------------------------------
20438
+ HandlerTest: test_string_in_block_works
20439
+ ---------------------------------------
20440
+ -----------------------------------------
20441
+ HelloControllerTest: test_should_get_show
20442
+ -----------------------------------------
20443
+ Processing by HelloController#show as HTML
20444
+ Rendered hello/show.html.et within layouts/application (0.6ms)
20445
+ Completed 200 OK in 125ms (Views: 125.3ms)
20446
+ ----------------------------------------------------------------
20447
+ SelectTest: test_select_collection_works_using_collection_select
20448
+ ----------------------------------------------------------------
20449
+ ------------------------------------------
20450
+ SelectTest: test_select_comes_with_a_label
20451
+ ------------------------------------------
20452
+ --------------------------------------------------
20453
+ SelectTest: test_select_defaults_can_be_overridden
20454
+ --------------------------------------------------
20455
+ -------------------------------------------------------
20456
+ SelectTest: test_select_defaults_to_include_blank:_true
20457
+ -------------------------------------------------------
20458
+ ---------------------------------------------------------------------------
20459
+ SelectTest: test_select_generates_correct_options_when_values_are_specified
20460
+ ---------------------------------------------------------------------------
20461
+ ------------------------------------------------------------------------
20462
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
20463
+ ------------------------------------------------------------------------
20464
+ --------------------------------------------------------------
20465
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
20466
+ --------------------------------------------------------------
20467
+ -----------------------------------------------------------------------------------------
20468
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
20469
+ -----------------------------------------------------------------------------------------
20470
+ ---------------------------------------------------
20471
+ SelectTest: test_select_requires_a_parent_component
20472
+ ---------------------------------------------------
20473
+ ---------------------------------------------------------------------------
20474
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
20475
+ ---------------------------------------------------------------------------
20476
+ -------------------------------------------------------------------------
20477
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
20478
+ -------------------------------------------------------------------------
20479
+ -----------------------------------------------------------
20480
+ RadioTest: test_radio_has_correct_label_field_name_and_text
20481
+ -----------------------------------------------------------
20482
+ ------------------------------------------------------------------
20483
+ RadioTest: test_radio_options_from_collection_when_options_omitted
20484
+ ------------------------------------------------------------------
20485
+ ----------------------------------------------------------
20486
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
20487
+ ----------------------------------------------------------
20488
+ --------------------------------------------------------
20489
+ RadioTest: test_radio_options_present_with_class_'radio'
20490
+ --------------------------------------------------------
20491
+ -------------------------------------------------
20492
+ RadioTest: test_radio_requires_a_parent_component
20493
+ -------------------------------------------------
20494
+ ------------------------------------------------------------
20495
+ RadioTest: test_radio_throws_error_if_given_improper_options
20496
+ ------------------------------------------------------------
20497
+ --------------------------------------------
20498
+ CompilerTest: test_.compile_returns_a_string
20499
+ --------------------------------------------
20500
+ ---------------------------------------------------------------------
20501
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
20502
+ ---------------------------------------------------------------------
20503
+ -------------------------------------------
20504
+ ExpressTemplatesTest: test_we_have_a_module
20505
+ -------------------------------------------
20506
+ ------------------------------------------------------------------------------------
20507
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
20508
+ ------------------------------------------------------------------------------------
20509
+ -------------------------------------------------------------------
20510
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
20511
+ -------------------------------------------------------------------
20512
+ ---------------------------------------------------------------------
20513
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
20514
+ ---------------------------------------------------------------------
20515
+ ---------------------------------------------------------------------
20516
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
20517
+ ---------------------------------------------------------------------
20518
+ ----------------------------------------------------
20519
+ InterpolatorTest: test_nested_with_outer_text_parses
20520
+ ----------------------------------------------------
20521
+ -------------------------------------------------------
20522
+ InterpolatorTest: test_nested_without_outer_text_parses
20523
+ -------------------------------------------------------
20524
+ ---------------------------------------------------------------------
20525
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
20526
+ ---------------------------------------------------------------------
20527
+ -------------------------------------------------
20528
+ InterpolatorTest: test_simplest_expression_parses
20529
+ -------------------------------------------------
20530
+ --------------------------------------------
20531
+ CompilerTest: test_.compile_returns_a_string
20532
+ --------------------------------------------
20533
+ ------------------------------------------------------------------------------------
20534
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
20535
+ ------------------------------------------------------------------------------------
20536
+ --------------------------------------------------------------------------------
20537
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
20538
+ --------------------------------------------------------------------------------
20539
+ -------------------------------------------------------
20540
+ StringTest: test_String#to_view_code_returns_the_string
20541
+ -------------------------------------------------------
20542
+ --------------------------------------------------------------------------------------------------
20543
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
20544
+ --------------------------------------------------------------------------------------------------
20545
+ -----------------------------------------------------------------------------------------
20546
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
20547
+ -----------------------------------------------------------------------------------------
20548
+ ---------------------------------------------------------------------------------------------------
20549
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
20550
+ ---------------------------------------------------------------------------------------------------
20551
+ ------------------------------------------------------------------------------------------------
20552
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
20553
+ ------------------------------------------------------------------------------------------------
20554
+ -----------------------------------------------------------------------------
20555
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
20556
+ -----------------------------------------------------------------------------
20557
+ ------------------------------------------------------------
20558
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
20559
+ ------------------------------------------------------------
20560
+ ---------------------------------------------------------------------------
20561
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
20562
+ ---------------------------------------------------------------------------
20563
+ -------------------------------------------------------------
20564
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
20565
+ -------------------------------------------------------------
20566
+ -------------------------------------------------------
20567
+ CheckboxTest: test_checkbox_respects_label_after:_true_
20568
+ -------------------------------------------------------
20569
+ -----------------------------------------
20570
+ HelloControllerTest: test_should_get_show
20571
+ -----------------------------------------
20572
+ Processing by HelloController#show as HTML
20573
+ Rendered hello/show.html.et within layouts/application (0.7ms)
20574
+ Completed 200 OK in 122ms (Views: 121.5ms)
20575
+ --------------------------------------------------------------
20576
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
20577
+ --------------------------------------------------------------
20578
+ ------------------------------------------------------------------------
20579
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
20580
+ ------------------------------------------------------------------------
20581
+ ----------------------------------------------------------
20582
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
20583
+ ----------------------------------------------------------
20584
+ -----------------------------
20585
+ HandlerTest: test_locals_work
20586
+ -----------------------------
20587
+ ------------------------------------------------------------
20588
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
20589
+ ------------------------------------------------------------
20590
+ ----------------------------------
20591
+ HandlerTest: test_other_attributes
20592
+ ----------------------------------
20593
+ -------------------------------------------
20594
+ HandlerTest: test_our_handler_is_registered
20595
+ -------------------------------------------
20596
+ ---------------------------------------
20597
+ HandlerTest: test_string_in_block_works
20598
+ ---------------------------------------
20599
+ -------------------------------------
20600
+ BasicFieldsTest: test_all_fields_work
20601
+ -------------------------------------
20602
+ ---------------------------------------------------------------------------------
20603
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
20604
+ ---------------------------------------------------------------------------------
20605
+ ---------------------------------------------------------
20606
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
20607
+ ---------------------------------------------------------
20608
+ ---------------------------------------------------------
20609
+ BasicFieldsTest: test_passing_html_options_to_fields_work
20610
+ ---------------------------------------------------------
20611
+ -----------------------------------------------------------------------------
20612
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
20613
+ -----------------------------------------------------------------------------
20614
+ ----------------------------------------------------------
20615
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
20616
+ ----------------------------------------------------------
20617
+ ---------------------------------------------------------------
20618
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
20619
+ ---------------------------------------------------------------
20620
+ ---------------------------------------------------------
20621
+ ExpressFormTest: test_express_form_default_method_is_POST
20622
+ ---------------------------------------------------------
20623
+ -----------------------------------------------------
20624
+ ExpressFormTest: test_simplest_form_contains_form_tag
20625
+ -----------------------------------------------------
20626
+ ---------------------------------------------------------------
20627
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
20628
+ ---------------------------------------------------------------
20629
+ ---------------------------------------------------
20630
+ ExpressFormTest: test_simplest_form_contains_submit
20631
+ ---------------------------------------------------
20632
+ -------------------------------------------
20633
+ ExpressFormTest: test_simplest_form_renders
20634
+ -------------------------------------------
20635
+ -------------------------------------------------------------------
20636
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
20637
+ -------------------------------------------------------------------
20638
+ ----------------------------------------------------------------
20639
+ SelectTest: test_select_collection_works_using_collection_select
20640
+ ----------------------------------------------------------------
20641
+ ------------------------------------------
20642
+ SelectTest: test_select_comes_with_a_label
20643
+ ------------------------------------------
20644
+ --------------------------------------------------
20645
+ SelectTest: test_select_defaults_can_be_overridden
20646
+ --------------------------------------------------
20647
+ -------------------------------------------------------
20648
+ SelectTest: test_select_defaults_to_include_blank:_true
20649
+ -------------------------------------------------------
20650
+ ---------------------------------------------------------------------------
20651
+ SelectTest: test_select_generates_correct_options_when_values_are_specified
20652
+ ---------------------------------------------------------------------------
20653
+ ------------------------------------------------------------------------
20654
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
20655
+ ------------------------------------------------------------------------
20656
+ --------------------------------------------------------------
20657
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
20658
+ --------------------------------------------------------------
20659
+ -----------------------------------------------------------------------------------------
20660
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
20661
+ -----------------------------------------------------------------------------------------
20662
+ ---------------------------------------------------
20663
+ SelectTest: test_select_requires_a_parent_component
20664
+ ---------------------------------------------------
20665
+ ---------------------------------------------------------------------------
20666
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
20667
+ ---------------------------------------------------------------------------
20668
+ -------------------------------------------------------------------------
20669
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
20670
+ -------------------------------------------------------------------------
20671
+ ----------------------------------------------------
20672
+ SubmitTest: test_submit_takes_string_param_for_value
20673
+ ----------------------------------------------------
20674
+ -----------------------------------------------------------------------------------------
20675
+ BaseTest: test_.has_markup_makes_compile_return_the_block_passed_through_express_compiled
20676
+ -----------------------------------------------------------------------------------------
20677
+ ----------------------------------------------------------------------
20678
+ BaseTest: test_components_register_themselves_as_arbre_builder_methods
20679
+ ----------------------------------------------------------------------
20680
+ --------------------------------------------------------------------
20681
+ BaseTest: test_helpers_defined_in_component_are_evaluated_in_context
20682
+ --------------------------------------------------------------------
20683
+ ----------------------------------------------------------------------------
20684
+ ConfigurableTest: test_a_configurable_component_may_have_also_be_a_container
20685
+ ----------------------------------------------------------------------------
20686
+ ----------------------------------------------------
20687
+ ConfigurableTest: test_renders_id_argument_as_dom_id
20688
+ ----------------------------------------------------
20689
+ ---------------------------------------------------------------------------------------------
20690
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
20691
+ ---------------------------------------------------------------------------------------------
20692
+ -----------------------------------------------------------------
20693
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
20694
+ -----------------------------------------------------------------
20695
+ ------------------------------------------------------------------
20696
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
20697
+ ------------------------------------------------------------------
20698
+ ------------------------------------------------
20699
+ ProcTest: test_#source_body_handles_funky_bodies
20700
+ ------------------------------------------------
20701
+ ----------------------------------------------------------
20702
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
20703
+ ----------------------------------------------------------
20704
+ ------------------------------------------------------
20705
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
20706
+ ------------------------------------------------------
20707
+ ----------------------------------------------
20708
+ ProcTest: test_#source_returns_a_proc's_source
20709
+ ----------------------------------------------
20710
+ ---------------------------------------------------------------
20711
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
20712
+ ---------------------------------------------------------------
20713
+ ------------------------------------------------------------
20714
+ ProcTest: test_#source_works_with_a_block_containing_a_block
20715
+ ------------------------------------------------------------
20716
+ --------------------------------------------
20717
+ ProcTest: test_#source_works_with_a_do_block
20718
+ --------------------------------------------
20719
+ -----------------------------------------------------
20720
+ ProcTest: test_#source_works_with_a_single_line_block
20721
+ -----------------------------------------------------
20722
+ -------------------------------------------------
20723
+ ProcTest: test_#source_works_with_a_stabby_lambda
20724
+ -------------------------------------------------
20725
+ ----------------------------------------------------------------------------------------
20726
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
20727
+ ----------------------------------------------------------------------------------------
20728
+ -----------------------------------------------------------
20729
+ RadioTest: test_radio_has_correct_label_field_name_and_text
20730
+ -----------------------------------------------------------
20731
+ ------------------------------------------------------------------
20732
+ RadioTest: test_radio_options_from_collection_when_options_omitted
20733
+ ------------------------------------------------------------------
20734
+ ----------------------------------------------------------
20735
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
20736
+ ----------------------------------------------------------
20737
+ --------------------------------------------------------
20738
+ RadioTest: test_radio_options_present_with_class_'radio'
20739
+ --------------------------------------------------------
20740
+ -------------------------------------------------
20741
+ RadioTest: test_radio_requires_a_parent_component
20742
+ -------------------------------------------------
20743
+ ------------------------------------------------------------
20744
+ RadioTest: test_radio_throws_error_if_given_improper_options
20745
+ ------------------------------------------------------------
20746
+ ------------------------------------------------------------------------------------
20747
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
20748
+ ------------------------------------------------------------------------------------
20749
+ -------------------------------------------------------------------
20750
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
20751
+ -------------------------------------------------------------------
20752
+ ---------------------------------------------------------------------
20753
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
20754
+ ---------------------------------------------------------------------
20755
+ ---------------------------------------------------------------------
20756
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
20757
+ ---------------------------------------------------------------------
20758
+ ----------------------------------------------------
20759
+ InterpolatorTest: test_nested_with_outer_text_parses
20760
+ ----------------------------------------------------
20761
+ -------------------------------------------------------
20762
+ InterpolatorTest: test_nested_without_outer_text_parses
20763
+ -------------------------------------------------------
20764
+ ---------------------------------------------------------------------
20765
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
20766
+ ---------------------------------------------------------------------
20767
+ -------------------------------------------------
20768
+ InterpolatorTest: test_simplest_expression_parses
20769
+ -------------------------------------------------
20770
+ ---------------------------------------------------------------------
20771
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
20772
+ ---------------------------------------------------------------------
20773
+ -------------------------------------------
20774
+ ExpressTemplatesTest: test_we_have_a_module
20775
+ -------------------------------------------
20776
+ -------------------------------------
20777
+ BasicFieldsTest: test_all_fields_work
20778
+ -------------------------------------
20779
+ ---------------------------------------------------------------------------------
20780
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
20781
+ ---------------------------------------------------------------------------------
20782
+ ---------------------------------------------------------
20783
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
20784
+ ---------------------------------------------------------
20785
+ ---------------------------------------------------------
20786
+ BasicFieldsTest: test_passing_html_options_to_fields_work
20787
+ ---------------------------------------------------------
20788
+ -----------------------------------------------------------------------------
20789
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
20790
+ -----------------------------------------------------------------------------
20791
+ ----------------------------------------------------------
20792
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
20793
+ ----------------------------------------------------------
20794
+ ----------------------------------------------------------------
20795
+ SelectTest: test_select_collection_works_using_collection_select
20796
+ ----------------------------------------------------------------
20797
+ ------------------------------------------
20798
+ SelectTest: test_select_comes_with_a_label
20799
+ ------------------------------------------
20800
+ --------------------------------------------------
20801
+ SelectTest: test_select_defaults_can_be_overridden
20802
+ --------------------------------------------------
20803
+ -------------------------------------------------------
20804
+ SelectTest: test_select_defaults_to_include_blank:_true
20805
+ -------------------------------------------------------
20806
+ ---------------------------------------------------------------------------
20807
+ SelectTest: test_select_generates_correct_options_when_values_are_specified
20808
+ ---------------------------------------------------------------------------
20809
+ ------------------------------------------------------------------------
20810
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
20811
+ ------------------------------------------------------------------------
20812
+ --------------------------------------------------------------
20813
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
20814
+ --------------------------------------------------------------
20815
+ -----------------------------------------------------------------------------------------
20816
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
20817
+ -----------------------------------------------------------------------------------------
20818
+ ---------------------------------------------------
20819
+ SelectTest: test_select_requires_a_parent_component
20820
+ ---------------------------------------------------
20821
+ ---------------------------------------------------------------------------
20822
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
20823
+ ---------------------------------------------------------------------------
20824
+ -------------------------------------------------------------------------
20825
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
20826
+ -------------------------------------------------------------------------
20827
+ --------------------------------------------
20828
+ CompilerTest: test_.compile_returns_a_string
20829
+ --------------------------------------------
20830
+ --------------------------------------------------------------------------------------------------
20831
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
20832
+ --------------------------------------------------------------------------------------------------
20833
+ -----------------------------------------------------------------------------------------
20834
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
20835
+ -----------------------------------------------------------------------------------------
20836
+ ---------------------------------------------------------------------------------------------------
20837
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
20838
+ ---------------------------------------------------------------------------------------------------
20839
+ ------------------------------------------------------------------------------------------------
20840
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
20841
+ ------------------------------------------------------------------------------------------------
20842
+ -----------------------------------------------------------------------------
20843
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
20844
+ -----------------------------------------------------------------------------
20845
+ ------------------------------------------------------------------------------------
20846
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
20847
+ ------------------------------------------------------------------------------------
20848
+ --------------------------------------------------------------------------------
20849
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
20850
+ --------------------------------------------------------------------------------
20851
+ -------------------------------------------------------
20852
+ StringTest: test_String#to_view_code_returns_the_string
20853
+ -------------------------------------------------------
20854
+ -----------------------------------------
20855
+ HelloControllerTest: test_should_get_show
20856
+ -----------------------------------------
20857
+ Processing by HelloController#show as HTML
20858
+ Rendered hello/show.html.et within layouts/application (0.7ms)
20859
+ Completed 200 OK in 120ms (Views: 119.3ms)
20860
+ --------------------------------------------------------------
20861
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
20862
+ --------------------------------------------------------------
20863
+ ------------------------------------------------------------------------
20864
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
20865
+ ------------------------------------------------------------------------
20866
+ ----------------------------------------------------------
20867
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
20868
+ ----------------------------------------------------------
20869
+ -----------------------------
20870
+ HandlerTest: test_locals_work
20871
+ -----------------------------
20872
+ ------------------------------------------------------------
20873
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
20874
+ ------------------------------------------------------------
20875
+ ----------------------------------
20876
+ HandlerTest: test_other_attributes
20877
+ ----------------------------------
20878
+ -------------------------------------------
20879
+ HandlerTest: test_our_handler_is_registered
20880
+ -------------------------------------------
20881
+ ---------------------------------------
20882
+ HandlerTest: test_string_in_block_works
20883
+ ---------------------------------------
20884
+ ---------------------------------------------------------------------------------------------
20885
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
20886
+ ---------------------------------------------------------------------------------------------
20887
+ -----------------------------------------------------------------
20888
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
20889
+ -----------------------------------------------------------------
20890
+ ------------------------------------------------------------------
20891
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
20892
+ ------------------------------------------------------------------
20893
+ -------------------------------------------------------------
20894
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
20895
+ -------------------------------------------------------------
20896
+ -------------------------------------------------------
20897
+ CheckboxTest: test_checkbox_respects_label_after:_true_
20898
+ -------------------------------------------------------
20899
+ ------------------------------------------------------------
20900
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
20901
+ ------------------------------------------------------------
20902
+ ---------------------------------------------------------------------------
20903
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
20904
+ ---------------------------------------------------------------------------
20905
+ ---------------------------------------------------------------------
20906
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
20907
+ ---------------------------------------------------------------------
20908
+ -------------------------------------------
20909
+ ExpressTemplatesTest: test_we_have_a_module
20910
+ -------------------------------------------
20911
+ ----------------------------------------------------
20912
+ SubmitTest: test_submit_takes_string_param_for_value
20913
+ ----------------------------------------------------
20914
+ ----------------------------------------------------------------------------
20915
+ ConfigurableTest: test_a_configurable_component_may_have_also_be_a_container
20916
+ ----------------------------------------------------------------------------
20917
+ ----------------------------------------------------
20918
+ ConfigurableTest: test_renders_id_argument_as_dom_id
20919
+ ----------------------------------------------------
20920
+ ---------------------------------------------------------------
20921
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
20922
+ ---------------------------------------------------------------
20923
+ ---------------------------------------------------------
20924
+ ExpressFormTest: test_express_form_default_method_is_POST
20925
+ ---------------------------------------------------------
20926
+ -----------------------------------------------------
20927
+ ExpressFormTest: test_simplest_form_contains_form_tag
20928
+ -----------------------------------------------------
20929
+ ---------------------------------------------------------------
20930
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
20931
+ ---------------------------------------------------------------
20932
+ ---------------------------------------------------
20933
+ ExpressFormTest: test_simplest_form_contains_submit
20934
+ ---------------------------------------------------
20935
+ -------------------------------------------
20936
+ ExpressFormTest: test_simplest_form_renders
20937
+ -------------------------------------------
20938
+ -------------------------------------------------------------------
20939
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
20940
+ -------------------------------------------------------------------
20941
+ -----------------------------------------------------------------------------------------
20942
+ BaseTest: test_.has_markup_makes_compile_return_the_block_passed_through_express_compiled
20943
+ -----------------------------------------------------------------------------------------
20944
+ ----------------------------------------------------------------------
20945
+ BaseTest: test_components_register_themselves_as_arbre_builder_methods
20946
+ ----------------------------------------------------------------------
20947
+ --------------------------------------------------------------------
20948
+ BaseTest: test_helpers_defined_in_component_are_evaluated_in_context
20949
+ --------------------------------------------------------------------
20950
+ ------------------------------------------------
20951
+ ProcTest: test_#source_body_handles_funky_bodies
20952
+ ------------------------------------------------
20953
+ ----------------------------------------------------------
20954
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
20955
+ ----------------------------------------------------------
20956
+ ------------------------------------------------------
20957
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
20958
+ ------------------------------------------------------
20959
+ ----------------------------------------------
20960
+ ProcTest: test_#source_returns_a_proc's_source
20961
+ ----------------------------------------------
20962
+ ---------------------------------------------------------------
20963
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
20964
+ ---------------------------------------------------------------
20965
+ ------------------------------------------------------------
20966
+ ProcTest: test_#source_works_with_a_block_containing_a_block
20967
+ ------------------------------------------------------------
20968
+ --------------------------------------------
20969
+ ProcTest: test_#source_works_with_a_do_block
20970
+ --------------------------------------------
20971
+ -----------------------------------------------------
20972
+ ProcTest: test_#source_works_with_a_single_line_block
20973
+ -----------------------------------------------------
20974
+ -------------------------------------------------
20975
+ ProcTest: test_#source_works_with_a_stabby_lambda
20976
+ -------------------------------------------------
20977
+ ----------------------------------------------------------------------------------------
20978
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
20979
+ ----------------------------------------------------------------------------------------
20980
+ ------------------------------------------------------------------------------------
20981
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
20982
+ ------------------------------------------------------------------------------------
20983
+ -------------------------------------------------------------------
20984
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
20985
+ -------------------------------------------------------------------
20986
+ ---------------------------------------------------------------------
20987
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
20988
+ ---------------------------------------------------------------------
20989
+ ---------------------------------------------------------------------
20990
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
20991
+ ---------------------------------------------------------------------
20992
+ ----------------------------------------------------
20993
+ InterpolatorTest: test_nested_with_outer_text_parses
20994
+ ----------------------------------------------------
20995
+ -------------------------------------------------------
20996
+ InterpolatorTest: test_nested_without_outer_text_parses
20997
+ -------------------------------------------------------
20998
+ ---------------------------------------------------------------------
20999
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
21000
+ ---------------------------------------------------------------------
21001
+ -------------------------------------------------
21002
+ InterpolatorTest: test_simplest_expression_parses
21003
+ -------------------------------------------------
21004
+ -----------------------------------------------------------
21005
+ RadioTest: test_radio_has_correct_label_field_name_and_text
21006
+ -----------------------------------------------------------
21007
+ ------------------------------------------------------------------
21008
+ RadioTest: test_radio_options_from_collection_when_options_omitted
21009
+ ------------------------------------------------------------------
21010
+ ----------------------------------------------------------
21011
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
21012
+ ----------------------------------------------------------
21013
+ --------------------------------------------------------
21014
+ RadioTest: test_radio_options_present_with_class_'radio'
21015
+ --------------------------------------------------------
21016
+ -------------------------------------------------
21017
+ RadioTest: test_radio_requires_a_parent_component
21018
+ -------------------------------------------------
21019
+ ------------------------------------------------------------
21020
+ RadioTest: test_radio_throws_error_if_given_improper_options
21021
+ ------------------------------------------------------------
21022
+ ----------------------------------------------
21023
+ SubmitTest: test_submit_accepts_a_class_option
21024
+ ----------------------------------------------
21025
+ ----------------------------------------------------
21026
+ SubmitTest: test_submit_takes_string_param_for_value
21027
+ ----------------------------------------------------
21028
+ ----------------------------------------------
21029
+ SubmitTest: test_submit_accepts_a_class_option
21030
+ ----------------------------------------------
21031
+ ----------------------------------------------------------------------------------
21032
+ SubmitTest: test_submit_accepts_a_class_option_when_string_provided_as_first_param
21033
+ ----------------------------------------------------------------------------------
21034
+ ----------------------------------------------------
21035
+ SubmitTest: test_submit_takes_string_param_for_value
21036
+ ----------------------------------------------------
21037
+ ------------------------------------------------------------
21038
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
21039
+ ------------------------------------------------------------
21040
+ ---------------------------------------------------------------------------
21041
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
21042
+ ---------------------------------------------------------------------------
21043
+ -----------------------------------------
21044
+ HelloControllerTest: test_should_get_show
21045
+ -----------------------------------------
21046
+ Processing by HelloController#show as HTML
21047
+ Rendered hello/show.html.et within layouts/application (0.5ms)
21048
+ Completed 200 OK in 103ms (Views: 102.4ms)
21049
+ ------------------------------------------------------------------------------------
21050
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
21051
+ ------------------------------------------------------------------------------------
21052
+ --------------------------------------------------------------------------------
21053
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
21054
+ --------------------------------------------------------------------------------
21055
+ -------------------------------------------------------
21056
+ StringTest: test_String#to_view_code_returns_the_string
21057
+ -------------------------------------------------------
21058
+ ---------------------------------------------------------------------------------------------
21059
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
21060
+ ---------------------------------------------------------------------------------------------
21061
+ -----------------------------------------------------------------
21062
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
21063
+ -----------------------------------------------------------------
21064
+ ------------------------------------------------------------------
21065
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
21066
+ ------------------------------------------------------------------
21067
+ ------------------------------------------------
21068
+ ProcTest: test_#source_body_handles_funky_bodies
21069
+ ------------------------------------------------
21070
+ ----------------------------------------------------------
21071
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
21072
+ ----------------------------------------------------------
21073
+ ------------------------------------------------------
21074
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
21075
+ ------------------------------------------------------
21076
+ ----------------------------------------------
21077
+ ProcTest: test_#source_returns_a_proc's_source
21078
+ ----------------------------------------------
21079
+ ---------------------------------------------------------------
21080
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
21081
+ ---------------------------------------------------------------
21082
+ ------------------------------------------------------------
21083
+ ProcTest: test_#source_works_with_a_block_containing_a_block
21084
+ ------------------------------------------------------------
21085
+ --------------------------------------------
21086
+ ProcTest: test_#source_works_with_a_do_block
21087
+ --------------------------------------------
21088
+ -----------------------------------------------------
21089
+ ProcTest: test_#source_works_with_a_single_line_block
21090
+ -----------------------------------------------------
21091
+ -------------------------------------------------
21092
+ ProcTest: test_#source_works_with_a_stabby_lambda
21093
+ -------------------------------------------------
21094
+ ----------------------------------------------------------------------------------------
21095
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
21096
+ ----------------------------------------------------------------------------------------
21097
+ ---------------------------------------------------------------
21098
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
21099
+ ---------------------------------------------------------------
21100
+ ---------------------------------------------------------
21101
+ ExpressFormTest: test_express_form_default_method_is_POST
21102
+ ---------------------------------------------------------
21103
+ -----------------------------------------------------
21104
+ ExpressFormTest: test_simplest_form_contains_form_tag
21105
+ -----------------------------------------------------
21106
+ ---------------------------------------------------------------
21107
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
21108
+ ---------------------------------------------------------------
21109
+ ---------------------------------------------------
21110
+ ExpressFormTest: test_simplest_form_contains_submit
21111
+ ---------------------------------------------------
21112
+ -------------------------------------------
21113
+ ExpressFormTest: test_simplest_form_renders
21114
+ -------------------------------------------
21115
+ -------------------------------------------------------------------
21116
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
21117
+ -------------------------------------------------------------------
21118
+ --------------------------------------------
21119
+ CompilerTest: test_.compile_returns_a_string
21120
+ --------------------------------------------
21121
+ ---------------------------------------------------------------------
21122
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
21123
+ ---------------------------------------------------------------------
21124
+ -------------------------------------------
21125
+ ExpressTemplatesTest: test_we_have_a_module
21126
+ -------------------------------------------
21127
+ --------------------------------------------------------------
21128
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
21129
+ --------------------------------------------------------------
21130
+ ------------------------------------------------------------------------
21131
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
21132
+ ------------------------------------------------------------------------
21133
+ ----------------------------------------------------------
21134
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
21135
+ ----------------------------------------------------------
21136
+ -----------------------------
21137
+ HandlerTest: test_locals_work
21138
+ -----------------------------
21139
+ ------------------------------------------------------------
21140
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
21141
+ ------------------------------------------------------------
21142
+ ----------------------------------
21143
+ HandlerTest: test_other_attributes
21144
+ ----------------------------------
21145
+ -------------------------------------------
21146
+ HandlerTest: test_our_handler_is_registered
21147
+ -------------------------------------------
21148
+ ---------------------------------------
21149
+ HandlerTest: test_string_in_block_works
21150
+ ---------------------------------------
21151
+ -------------------------------------
21152
+ BasicFieldsTest: test_all_fields_work
21153
+ -------------------------------------
21154
+ ---------------------------------------------------------------------------------
21155
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
21156
+ ---------------------------------------------------------------------------------
21157
+ ---------------------------------------------------------
21158
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
21159
+ ---------------------------------------------------------
21160
+ ---------------------------------------------------------
21161
+ BasicFieldsTest: test_passing_html_options_to_fields_work
21162
+ ---------------------------------------------------------
21163
+ -----------------------------------------------------------------------------
21164
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
21165
+ -----------------------------------------------------------------------------
21166
+ ----------------------------------------------------------
21167
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
21168
+ ----------------------------------------------------------
21169
+ ------------------------------------------------------------------------------------
21170
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
21171
+ ------------------------------------------------------------------------------------
21172
+ -------------------------------------------------------------------
21173
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
21174
+ -------------------------------------------------------------------
21175
+ ---------------------------------------------------------------------
21176
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
21177
+ ---------------------------------------------------------------------
21178
+ ---------------------------------------------------------------------
21179
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
21180
+ ---------------------------------------------------------------------
21181
+ ----------------------------------------------------
21182
+ InterpolatorTest: test_nested_with_outer_text_parses
21183
+ ----------------------------------------------------
21184
+ -------------------------------------------------------
21185
+ InterpolatorTest: test_nested_without_outer_text_parses
21186
+ -------------------------------------------------------
21187
+ ---------------------------------------------------------------------
21188
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
21189
+ ---------------------------------------------------------------------
21190
+ -------------------------------------------------
21191
+ InterpolatorTest: test_simplest_expression_parses
21192
+ -------------------------------------------------
21193
+ -------------------------------------------------------------
21194
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
21195
+ -------------------------------------------------------------
21196
+ -------------------------------------------------------
21197
+ CheckboxTest: test_checkbox_respects_label_after:_true_
21198
+ -------------------------------------------------------
21199
+ --------------------------------------------------------------------------------------------------
21200
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
21201
+ --------------------------------------------------------------------------------------------------
21202
+ -----------------------------------------------------------------------------------------
21203
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
21204
+ -----------------------------------------------------------------------------------------
21205
+ ---------------------------------------------------------------------------------------------------
21206
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
21207
+ ---------------------------------------------------------------------------------------------------
21208
+ ------------------------------------------------------------------------------------------------
21209
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
21210
+ ------------------------------------------------------------------------------------------------
21211
+ -----------------------------------------------------------------------------
21212
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
21213
+ -----------------------------------------------------------------------------
21214
+ ----------------------------------------------------------------
21215
+ SelectTest: test_select_collection_works_using_collection_select
21216
+ ----------------------------------------------------------------
21217
+ ------------------------------------------
21218
+ SelectTest: test_select_comes_with_a_label
21219
+ ------------------------------------------
21220
+ --------------------------------------------------
21221
+ SelectTest: test_select_defaults_can_be_overridden
21222
+ --------------------------------------------------
21223
+ -------------------------------------------------------
21224
+ SelectTest: test_select_defaults_to_include_blank:_true
21225
+ -------------------------------------------------------
21226
+ ---------------------------------------------------------------------------
21227
+ SelectTest: test_select_generates_correct_options_when_values_are_specified
21228
+ ---------------------------------------------------------------------------
21229
+ ------------------------------------------------------------------------
21230
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
21231
+ ------------------------------------------------------------------------
21232
+ --------------------------------------------------------------
21233
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
21234
+ --------------------------------------------------------------
21235
+ -----------------------------------------------------------------------------------------
21236
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
21237
+ -----------------------------------------------------------------------------------------
21238
+ ---------------------------------------------------
21239
+ SelectTest: test_select_requires_a_parent_component
21240
+ ---------------------------------------------------
21241
+ ---------------------------------------------------------------------------
21242
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
21243
+ ---------------------------------------------------------------------------
21244
+ -------------------------------------------------------------------------
21245
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
21246
+ -------------------------------------------------------------------------
21247
+ -----------------------------------------------------------------------------------------
21248
+ BaseTest: test_.has_markup_makes_compile_return_the_block_passed_through_express_compiled
21249
+ -----------------------------------------------------------------------------------------
21250
+ ----------------------------------------------------------------------
21251
+ BaseTest: test_components_register_themselves_as_arbre_builder_methods
21252
+ ----------------------------------------------------------------------
21253
+ --------------------------------------------------------------------
21254
+ BaseTest: test_helpers_defined_in_component_are_evaluated_in_context
21255
+ --------------------------------------------------------------------
21256
+ -----------------------------------------------------------
21257
+ RadioTest: test_radio_has_correct_label_field_name_and_text
21258
+ -----------------------------------------------------------
21259
+ ------------------------------------------------------------------
21260
+ RadioTest: test_radio_options_from_collection_when_options_omitted
21261
+ ------------------------------------------------------------------
21262
+ ----------------------------------------------------------
21263
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
21264
+ ----------------------------------------------------------
21265
+ --------------------------------------------------------
21266
+ RadioTest: test_radio_options_present_with_class_'radio'
21267
+ --------------------------------------------------------
21268
+ -------------------------------------------------
21269
+ RadioTest: test_radio_requires_a_parent_component
21270
+ -------------------------------------------------
21271
+ ------------------------------------------------------------
21272
+ RadioTest: test_radio_throws_error_if_given_improper_options
21273
+ ------------------------------------------------------------
21274
+ ----------------------------------------------------------------------------
21275
+ ConfigurableTest: test_a_configurable_component_may_have_also_be_a_container
21276
+ ----------------------------------------------------------------------------
21277
+ ----------------------------------------------------
21278
+ ConfigurableTest: test_renders_id_argument_as_dom_id
21279
+ ----------------------------------------------------
21280
+ ----------------------------------------------
21281
+ SubmitTest: test_submit_accepts_a_class_option
21282
+ ----------------------------------------------
21283
+ ----------------------------------------------------------------------------------
21284
+ SubmitTest: test_submit_accepts_a_class_option_when_string_provided_as_first_param
21285
+ ----------------------------------------------------------------------------------
21286
+ ----------------------------------------------------
21287
+ SubmitTest: test_submit_takes_string_param_for_value
21288
+ ----------------------------------------------------
21289
+ --------------------------------------------------------------
21290
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
21291
+ --------------------------------------------------------------
21292
+ ------------------------------------------------------------------------
21293
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
21294
+ ------------------------------------------------------------------------
21295
+ ----------------------------------------------------------
21296
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
21297
+ ----------------------------------------------------------
21298
+ -----------------------------
21299
+ HandlerTest: test_locals_work
21300
+ -----------------------------
21301
+ ------------------------------------------------------------
21302
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
21303
+ ------------------------------------------------------------
21304
+ ----------------------------------
21305
+ HandlerTest: test_other_attributes
21306
+ ----------------------------------
21307
+ -------------------------------------------
21308
+ HandlerTest: test_our_handler_is_registered
21309
+ -------------------------------------------
21310
+ ---------------------------------------
21311
+ HandlerTest: test_string_in_block_works
21312
+ ---------------------------------------
21313
+ ------------------------------------------------
21314
+ ProcTest: test_#source_body_handles_funky_bodies
21315
+ ------------------------------------------------
21316
+ ----------------------------------------------------------
21317
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
21318
+ ----------------------------------------------------------
21319
+ ------------------------------------------------------
21320
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
21321
+ ------------------------------------------------------
21322
+ ----------------------------------------------
21323
+ ProcTest: test_#source_returns_a_proc's_source
21324
+ ----------------------------------------------
21325
+ ---------------------------------------------------------------
21326
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
21327
+ ---------------------------------------------------------------
21328
+ ------------------------------------------------------------
21329
+ ProcTest: test_#source_works_with_a_block_containing_a_block
21330
+ ------------------------------------------------------------
21331
+ --------------------------------------------
21332
+ ProcTest: test_#source_works_with_a_do_block
21333
+ --------------------------------------------
21334
+ -----------------------------------------------------
21335
+ ProcTest: test_#source_works_with_a_single_line_block
21336
+ -----------------------------------------------------
21337
+ -------------------------------------------------
21338
+ ProcTest: test_#source_works_with_a_stabby_lambda
21339
+ -------------------------------------------------
21340
+ ----------------------------------------------------------------------------------------
21341
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
21342
+ ----------------------------------------------------------------------------------------
21343
+ ---------------------------------------------------------------
21344
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
21345
+ ---------------------------------------------------------------
21346
+ ---------------------------------------------------------
21347
+ ExpressFormTest: test_express_form_default_method_is_POST
21348
+ ---------------------------------------------------------
21349
+ -----------------------------------------------------
21350
+ ExpressFormTest: test_simplest_form_contains_form_tag
21351
+ -----------------------------------------------------
21352
+ ---------------------------------------------------------------
21353
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
21354
+ ---------------------------------------------------------------
21355
+ ---------------------------------------------------
21356
+ ExpressFormTest: test_simplest_form_contains_submit
21357
+ ---------------------------------------------------
21358
+ -------------------------------------------
21359
+ ExpressFormTest: test_simplest_form_renders
21360
+ -------------------------------------------
21361
+ -------------------------------------------------------------------
21362
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
21363
+ -------------------------------------------------------------------
21364
+ ---------------------------------------------------------------------
21365
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
21366
+ ---------------------------------------------------------------------
21367
+ -------------------------------------------
21368
+ ExpressTemplatesTest: test_we_have_a_module
21369
+ -------------------------------------------
21370
+ -----------------------------------------------------------------------------------------
21371
+ BaseTest: test_.has_markup_makes_compile_return_the_block_passed_through_express_compiled
21372
+ -----------------------------------------------------------------------------------------
21373
+ ----------------------------------------------------------------------
21374
+ BaseTest: test_components_register_themselves_as_arbre_builder_methods
21375
+ ----------------------------------------------------------------------
21376
+ --------------------------------------------------------------------
21377
+ BaseTest: test_helpers_defined_in_component_are_evaluated_in_context
21378
+ --------------------------------------------------------------------
21379
+ --------------------------------------------------------------------------------------------------
21380
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
21381
+ --------------------------------------------------------------------------------------------------
21382
+ -----------------------------------------------------------------------------------------
21383
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
21384
+ -----------------------------------------------------------------------------------------
21385
+ ---------------------------------------------------------------------------------------------------
21386
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
21387
+ ---------------------------------------------------------------------------------------------------
21388
+ ------------------------------------------------------------------------------------------------
21389
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
21390
+ ------------------------------------------------------------------------------------------------
21391
+ -----------------------------------------------------------------------------
21392
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
21393
+ -----------------------------------------------------------------------------
21394
+ ----------------------------------------------------------------------------
21395
+ ConfigurableTest: test_a_configurable_component_may_have_also_be_a_container
21396
+ ----------------------------------------------------------------------------
21397
+ ----------------------------------------------------
21398
+ ConfigurableTest: test_renders_id_argument_as_dom_id
21399
+ ----------------------------------------------------
21400
+ ----------------------------------------------------------------
21401
+ SelectTest: test_select_collection_works_using_collection_select
21402
+ ----------------------------------------------------------------
21403
+ ------------------------------------------
21404
+ SelectTest: test_select_comes_with_a_label
21405
+ ------------------------------------------
21406
+ --------------------------------------------------
21407
+ SelectTest: test_select_defaults_can_be_overridden
21408
+ --------------------------------------------------
21409
+ -------------------------------------------------------
21410
+ SelectTest: test_select_defaults_to_include_blank:_true
21411
+ -------------------------------------------------------
21412
+ ---------------------------------------------------------------------------
21413
+ SelectTest: test_select_generates_correct_options_when_values_are_specified
21414
+ ---------------------------------------------------------------------------
21415
+ ------------------------------------------------------------------------
21416
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
21417
+ ------------------------------------------------------------------------
21418
+ --------------------------------------------------------------
21419
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
21420
+ --------------------------------------------------------------
21421
+ -----------------------------------------------------------------------------------------
21422
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
21423
+ -----------------------------------------------------------------------------------------
21424
+ ---------------------------------------------------
21425
+ SelectTest: test_select_requires_a_parent_component
21426
+ ---------------------------------------------------
21427
+ ---------------------------------------------------------------------------
21428
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
21429
+ ---------------------------------------------------------------------------
21430
+ -------------------------------------------------------------------------
21431
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
21432
+ -------------------------------------------------------------------------
21433
+ -----------------------------------------------------------
21434
+ RadioTest: test_radio_has_correct_label_field_name_and_text
21435
+ -----------------------------------------------------------
21436
+ ------------------------------------------------------------------
21437
+ RadioTest: test_radio_options_from_collection_when_options_omitted
21438
+ ------------------------------------------------------------------
21439
+ ----------------------------------------------------------
21440
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
21441
+ ----------------------------------------------------------
21442
+ --------------------------------------------------------
21443
+ RadioTest: test_radio_options_present_with_class_'radio'
21444
+ --------------------------------------------------------
21445
+ -------------------------------------------------
21446
+ RadioTest: test_radio_requires_a_parent_component
21447
+ -------------------------------------------------
21448
+ ------------------------------------------------------------
21449
+ RadioTest: test_radio_throws_error_if_given_improper_options
21450
+ ------------------------------------------------------------
21451
+ ------------------------------------------------------------------------------------
21452
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
21453
+ ------------------------------------------------------------------------------------
21454
+ --------------------------------------------------------------------------------
21455
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
21456
+ --------------------------------------------------------------------------------
21457
+ -------------------------------------------------------
21458
+ StringTest: test_String#to_view_code_returns_the_string
21459
+ -------------------------------------------------------
21460
+ -----------------------------------------
21461
+ HelloControllerTest: test_should_get_show
21462
+ -----------------------------------------
21463
+ Processing by HelloController#show as HTML
21464
+ Rendered hello/show.html.et within layouts/application (0.6ms)
21465
+ Completed 200 OK in 116ms (Views: 116.1ms)
21466
+ ------------------------------------------------------------
21467
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
21468
+ ------------------------------------------------------------
21469
+ ---------------------------------------------------------------------------
21470
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
21471
+ ---------------------------------------------------------------------------
21472
+ --------------------------------------------
21473
+ CompilerTest: test_.compile_returns_a_string
21474
+ --------------------------------------------
21475
+ ---------------------------------------------------------------------------------------------
21476
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
21477
+ ---------------------------------------------------------------------------------------------
21478
+ -----------------------------------------------------------------
21479
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
21480
+ -----------------------------------------------------------------
21481
+ ------------------------------------------------------------------
21482
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
21483
+ ------------------------------------------------------------------
21484
+ -------------------------------------------------------------
21485
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
21486
+ -------------------------------------------------------------
21487
+ -------------------------------------------------------
21488
+ CheckboxTest: test_checkbox_respects_label_after:_true_
21489
+ -------------------------------------------------------
21490
+ ----------------------------------------------
21491
+ SubmitTest: test_submit_accepts_a_class_option
21492
+ ----------------------------------------------
21493
+ ----------------------------------------------------------------------------------
21494
+ SubmitTest: test_submit_accepts_a_class_option_when_string_provided_as_first_param
21495
+ ----------------------------------------------------------------------------------
21496
+ ----------------------------------------------------
21497
+ SubmitTest: test_submit_takes_string_param_for_value
21498
+ ----------------------------------------------------
21499
+ ------------------------------------------------------------------------------------
21500
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
21501
+ ------------------------------------------------------------------------------------
21502
+ -------------------------------------------------------------------
21503
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
21504
+ -------------------------------------------------------------------
21505
+ ---------------------------------------------------------------------
21506
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
21507
+ ---------------------------------------------------------------------
21508
+ ---------------------------------------------------------------------
21509
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
21510
+ ---------------------------------------------------------------------
21511
+ ----------------------------------------------------
21512
+ InterpolatorTest: test_nested_with_outer_text_parses
21513
+ ----------------------------------------------------
21514
+ -------------------------------------------------------
21515
+ InterpolatorTest: test_nested_without_outer_text_parses
21516
+ -------------------------------------------------------
21517
+ ---------------------------------------------------------------------
21518
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
21519
+ ---------------------------------------------------------------------
21520
+ -------------------------------------------------
21521
+ InterpolatorTest: test_simplest_expression_parses
21522
+ -------------------------------------------------
21523
+ -------------------------------------
21524
+ BasicFieldsTest: test_all_fields_work
21525
+ -------------------------------------
21526
+ ---------------------------------------------------------------------------------
21527
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
21528
+ ---------------------------------------------------------------------------------
21529
+ ---------------------------------------------------------
21530
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
21531
+ ---------------------------------------------------------
21532
+ ---------------------------------------------------------
21533
+ BasicFieldsTest: test_passing_html_options_to_fields_work
21534
+ ---------------------------------------------------------
21535
+ -----------------------------------------------------------------------------
21536
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
21537
+ -----------------------------------------------------------------------------
21538
+ ----------------------------------------------------------
21539
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
21540
+ ----------------------------------------------------------
21541
+ -------------------------------------
21542
+ BasicFieldsTest: test_all_fields_work
21543
+ -------------------------------------
21544
+ ---------------------------------------------------------------------------------
21545
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
21546
+ ---------------------------------------------------------------------------------
21547
+ ---------------------------------------------------------
21548
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
21549
+ ---------------------------------------------------------
21550
+ ---------------------------------------------------------
21551
+ BasicFieldsTest: test_passing_html_options_to_fields_work
21552
+ ---------------------------------------------------------
21553
+ -----------------------------------------------------------------------------
21554
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
21555
+ -----------------------------------------------------------------------------
21556
+ ----------------------------------------------------------
21557
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
21558
+ ----------------------------------------------------------
21559
+ -----------------------------------------
21560
+ HelloControllerTest: test_should_get_show
21561
+ -----------------------------------------
21562
+ Processing by HelloController#show as HTML
21563
+ Rendered hello/show.html.et within layouts/application (0.5ms)
21564
+ Completed 200 OK in 117ms (Views: 117.0ms)
21565
+ ------------------------------------------------
21566
+ ProcTest: test_#source_body_handles_funky_bodies
21567
+ ------------------------------------------------
21568
+ ----------------------------------------------------------
21569
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
21570
+ ----------------------------------------------------------
21571
+ ------------------------------------------------------
21572
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
21573
+ ------------------------------------------------------
21574
+ ----------------------------------------------
21575
+ ProcTest: test_#source_returns_a_proc's_source
21576
+ ----------------------------------------------
21577
+ ---------------------------------------------------------------
21578
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
21579
+ ---------------------------------------------------------------
21580
+ ------------------------------------------------------------
21581
+ ProcTest: test_#source_works_with_a_block_containing_a_block
21582
+ ------------------------------------------------------------
21583
+ --------------------------------------------
21584
+ ProcTest: test_#source_works_with_a_do_block
21585
+ --------------------------------------------
21586
+ -----------------------------------------------------
21587
+ ProcTest: test_#source_works_with_a_single_line_block
21588
+ -----------------------------------------------------
21589
+ -------------------------------------------------
21590
+ ProcTest: test_#source_works_with_a_stabby_lambda
21591
+ -------------------------------------------------
21592
+ ----------------------------------------------------------------------------------------
21593
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
21594
+ ----------------------------------------------------------------------------------------
21595
+ ----------------------------------------------------------------
21596
+ SelectTest: test_select_collection_works_using_collection_select
21597
+ ----------------------------------------------------------------
21598
+ ------------------------------------------
21599
+ SelectTest: test_select_comes_with_a_label
21600
+ ------------------------------------------
21601
+ --------------------------------------------------
21602
+ SelectTest: test_select_defaults_can_be_overridden
21603
+ --------------------------------------------------
21604
+ -------------------------------------------------------
21605
+ SelectTest: test_select_defaults_to_include_blank:_true
21606
+ -------------------------------------------------------
21607
+ ---------------------------------------------------------------------------
21608
+ SelectTest: test_select_generates_correct_options_when_values_are_specified
21609
+ ---------------------------------------------------------------------------
21610
+ ------------------------------------------------------------------------
21611
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
21612
+ ------------------------------------------------------------------------
21613
+ --------------------------------------------------------------
21614
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
21615
+ --------------------------------------------------------------
21616
+ -----------------------------------------------------------------------------------------
21617
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
21618
+ -----------------------------------------------------------------------------------------
21619
+ ---------------------------------------------------
21620
+ SelectTest: test_select_requires_a_parent_component
21621
+ ---------------------------------------------------
21622
+ ---------------------------------------------------------------------------
21623
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
21624
+ ---------------------------------------------------------------------------
21625
+ -------------------------------------------------------------------------
21626
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
21627
+ -------------------------------------------------------------------------
21628
+ ------------------------------------------------------------------------------------
21629
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
21630
+ ------------------------------------------------------------------------------------
21631
+ -------------------------------------------------------------------
21632
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
21633
+ -------------------------------------------------------------------
21634
+ ---------------------------------------------------------------------
21635
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
21636
+ ---------------------------------------------------------------------
21637
+ ---------------------------------------------------------------------
21638
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
21639
+ ---------------------------------------------------------------------
21640
+ ----------------------------------------------------
21641
+ InterpolatorTest: test_nested_with_outer_text_parses
21642
+ ----------------------------------------------------
21643
+ -------------------------------------------------------
21644
+ InterpolatorTest: test_nested_without_outer_text_parses
21645
+ -------------------------------------------------------
21646
+ ---------------------------------------------------------------------
21647
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
21648
+ ---------------------------------------------------------------------
21649
+ -------------------------------------------------
21650
+ InterpolatorTest: test_simplest_expression_parses
21651
+ -------------------------------------------------
21652
+ ----------------------------------------------------------------------------
21653
+ ConfigurableTest: test_a_configurable_component_may_have_also_be_a_container
21654
+ ----------------------------------------------------------------------------
21655
+ ----------------------------------------------------
21656
+ ConfigurableTest: test_renders_id_argument_as_dom_id
21657
+ ----------------------------------------------------
21658
+ ---------------------------------------------------------------
21659
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
21660
+ ---------------------------------------------------------------
21661
+ ---------------------------------------------------------
21662
+ ExpressFormTest: test_express_form_default_method_is_POST
21663
+ ---------------------------------------------------------
21664
+ -----------------------------------------------------
21665
+ ExpressFormTest: test_simplest_form_contains_form_tag
21666
+ -----------------------------------------------------
21667
+ ---------------------------------------------------------------
21668
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
21669
+ ---------------------------------------------------------------
21670
+ ---------------------------------------------------
21671
+ ExpressFormTest: test_simplest_form_contains_submit
21672
+ ---------------------------------------------------
21673
+ -------------------------------------------
21674
+ ExpressFormTest: test_simplest_form_renders
21675
+ -------------------------------------------
21676
+ -------------------------------------------------------------------
21677
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
21678
+ -------------------------------------------------------------------
21679
+ --------------------------------------------------------------
21680
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
21681
+ --------------------------------------------------------------
21682
+ ------------------------------------------------------------------------
21683
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
21684
+ ------------------------------------------------------------------------
21685
+ ----------------------------------------------------------
21686
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
21687
+ ----------------------------------------------------------
21688
+ -----------------------------
21689
+ HandlerTest: test_locals_work
21690
+ -----------------------------
21691
+ ------------------------------------------------------------
21692
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
21693
+ ------------------------------------------------------------
21694
+ ----------------------------------
21695
+ HandlerTest: test_other_attributes
21696
+ ----------------------------------
21697
+ -------------------------------------------
21698
+ HandlerTest: test_our_handler_is_registered
21699
+ -------------------------------------------
21700
+ ---------------------------------------
21701
+ HandlerTest: test_string_in_block_works
21702
+ ---------------------------------------
21703
+ --------------------------------------------
21704
+ CompilerTest: test_.compile_returns_a_string
21705
+ --------------------------------------------
21706
+ -----------------------------------------------------------
21707
+ RadioTest: test_radio_has_correct_label_field_name_and_text
21708
+ -----------------------------------------------------------
21709
+ ------------------------------------------------------------------
21710
+ RadioTest: test_radio_options_from_collection_when_options_omitted
21711
+ ------------------------------------------------------------------
21712
+ ----------------------------------------------------------
21713
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
21714
+ ----------------------------------------------------------
21715
+ --------------------------------------------------------
21716
+ RadioTest: test_radio_options_present_with_class_'radio'
21717
+ --------------------------------------------------------
21718
+ -------------------------------------------------
21719
+ RadioTest: test_radio_requires_a_parent_component
21720
+ -------------------------------------------------
21721
+ ------------------------------------------------------------
21722
+ RadioTest: test_radio_throws_error_if_given_improper_options
21723
+ ------------------------------------------------------------
21724
+ ----------------------------------------------
21725
+ SubmitTest: test_submit_accepts_a_class_option
21726
+ ----------------------------------------------
21727
+ ----------------------------------------------------------------------------------
21728
+ SubmitTest: test_submit_accepts_a_class_option_when_string_provided_as_first_param
21729
+ ----------------------------------------------------------------------------------
21730
+ ----------------------------------------------------
21731
+ SubmitTest: test_submit_takes_string_param_for_value
21732
+ ----------------------------------------------------
21733
+ ---------------------------------------------------------------------
21734
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
21735
+ ---------------------------------------------------------------------
21736
+ -------------------------------------------
21737
+ ExpressTemplatesTest: test_we_have_a_module
21738
+ -------------------------------------------
21739
+ -------------------------------------------------------------
21740
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
21741
+ -------------------------------------------------------------
21742
+ -------------------------------------------------------
21743
+ CheckboxTest: test_checkbox_respects_label_after:_true_
21744
+ -------------------------------------------------------
21745
+ ------------------------------------------------------------
21746
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
21747
+ ------------------------------------------------------------
21748
+ ---------------------------------------------------------------------------
21749
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
21750
+ ---------------------------------------------------------------------------
21751
+ ---------------------------------------------------------------------------------------------
21752
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
21753
+ ---------------------------------------------------------------------------------------------
21754
+ -----------------------------------------------------------------
21755
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
21756
+ -----------------------------------------------------------------
21757
+ ------------------------------------------------------------------
21758
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
21759
+ ------------------------------------------------------------------
21760
+ -----------------------------------------------------------------------------------------
21761
+ BaseTest: test_.has_markup_makes_compile_return_the_block_passed_through_express_compiled
21762
+ -----------------------------------------------------------------------------------------
21763
+ ----------------------------------------------------------------------
21764
+ BaseTest: test_components_register_themselves_as_arbre_builder_methods
21765
+ ----------------------------------------------------------------------
21766
+ --------------------------------------------------------------------
21767
+ BaseTest: test_helpers_defined_in_component_are_evaluated_in_context
21768
+ --------------------------------------------------------------------
21769
+ --------------------------------------------------------------------------------------------------
21770
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
21771
+ --------------------------------------------------------------------------------------------------
21772
+ -----------------------------------------------------------------------------------------
21773
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
21774
+ -----------------------------------------------------------------------------------------
21775
+ ---------------------------------------------------------------------------------------------------
21776
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
21777
+ ---------------------------------------------------------------------------------------------------
21778
+ ------------------------------------------------------------------------------------------------
21779
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
21780
+ ------------------------------------------------------------------------------------------------
21781
+ -----------------------------------------------------------------------------
21782
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
21783
+ -----------------------------------------------------------------------------
21784
+ ------------------------------------------------------------------------------------
21785
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
21786
+ ------------------------------------------------------------------------------------
21787
+ --------------------------------------------------------------------------------
21788
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
21789
+ --------------------------------------------------------------------------------
21790
+ -------------------------------------------------------
21791
+ StringTest: test_String#to_view_code_returns_the_string
21792
+ -------------------------------------------------------
21793
+ ----------------------------------------------------------------
21794
+ SelectTest: test_select_collection_works_using_collection_select
21795
+ ----------------------------------------------------------------
21796
+ ------------------------------------------
21797
+ SelectTest: test_select_comes_with_a_label
21798
+ ------------------------------------------
21799
+ --------------------------------------------------
21800
+ SelectTest: test_select_defaults_can_be_overridden
21801
+ --------------------------------------------------
21802
+ -------------------------------------------------------
21803
+ SelectTest: test_select_defaults_to_include_blank:_true
21804
+ -------------------------------------------------------
21805
+ ---------------------------------------------------------------------------
21806
+ SelectTest: test_select_generates_correct_options_when_values_are_specified
21807
+ ---------------------------------------------------------------------------
21808
+ ------------------------------------------------------------------------
21809
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
21810
+ ------------------------------------------------------------------------
21811
+ --------------------------------------------------------------
21812
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
21813
+ --------------------------------------------------------------
21814
+ -----------------------------------------------------------------------------------------
21815
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
21816
+ -----------------------------------------------------------------------------------------
21817
+ ---------------------------------------------------
21818
+ SelectTest: test_select_requires_a_parent_component
21819
+ ---------------------------------------------------
21820
+ ---------------------------------------------------------------------------
21821
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
21822
+ ---------------------------------------------------------------------------
21823
+ -------------------------------------------------------------------------
21824
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
21825
+ -------------------------------------------------------------------------
21826
+ ----------------------------------------------------------------
21827
+ SelectTest: test_select_collection_works_using_collection_select
21828
+ ----------------------------------------------------------------
21829
+ ------------------------------------------
21830
+ SelectTest: test_select_comes_with_a_label
21831
+ ------------------------------------------
21832
+ --------------------------------------------------
21833
+ SelectTest: test_select_defaults_can_be_overridden
21834
+ --------------------------------------------------
21835
+ -------------------------------------------------------
21836
+ SelectTest: test_select_defaults_to_include_blank:_true
21837
+ -------------------------------------------------------
21838
+ ------------------------------------------------------------------------------------
21839
+ SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
21840
+ ------------------------------------------------------------------------------------
21841
+ ------------------------------------------------------------------------
21842
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
21843
+ ------------------------------------------------------------------------
21844
+ --------------------------------------------------------------
21845
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
21846
+ --------------------------------------------------------------
21847
+ -----------------------------------------------------------------------------------------
21848
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
21849
+ -----------------------------------------------------------------------------------------
21850
+ ---------------------------------------------------
21851
+ SelectTest: test_select_requires_a_parent_component
21852
+ ---------------------------------------------------
21853
+ ---------------------------------------------------------------------------
21854
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
21855
+ ---------------------------------------------------------------------------
21856
+ -------------------------------------------------------------------------
21857
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
21858
+ -------------------------------------------------------------------------