express_admin 1.4.3 → 1.4.4

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: 36b10649f1dd72c389614c2e9ef15b1b743f110b
4
- data.tar.gz: 18eef699334093cd6de86eb41f3d1df61c1cff6c
3
+ metadata.gz: c377f1f67e51a26bd13b6ae7985fe770a5432b83
4
+ data.tar.gz: 355f5b80413105604d2fef666aca329deca12aae
5
5
  SHA512:
6
- metadata.gz: ee14907c84d0768486dbf135f900f7faaf34726ca855e8b1477607450d4d5593ef69b314800175890d14fad5bb9460c9bcb4d536dc04d224f68a745df326c67e
7
- data.tar.gz: 2cae3014936bc711a0aeb9b61d8a6028add8a952c6c398b0a0baeaa41424a737e39b0a0157dfcd2d445298057fccca284f75be2f8e2da2c25d872b6e6b01cea9
6
+ metadata.gz: 5c286cd8d67e72cec5aafdd22ed52dd24b0c7dc6b70885333c62a0dacb0096ff412808231e61966f40d118177f819103666e0e7df3f6adbda117eb727033af7a
7
+ data.tar.gz: 791bfa6e3fad339ad7d33a5ac0060ee03f2be2eb05dee37012d1a228118cfd59c77f5cf515afcada43d772e3b247695cc2148e54bb1e8c6ea41bc66ee24ded75
@@ -12,7 +12,7 @@ module ExpressAdmin
12
12
  has_option :right, "Aligns the icon to the right of the text.",
13
13
  default: false
14
14
  has_option :href, "Link path, URL or anchor.",
15
- required: true, attribute: true
15
+ default: '#', attribute: true
16
16
  has_option :title, "Title text for accessibility; appears on mouse hover.",
17
17
  attribute: true
18
18
  has_option :confirm, "Should trigger a confirm message.",
@@ -11,6 +11,8 @@ require 'responders'
11
11
  require 'tinymce-rails'
12
12
  require 'inherited_resources'
13
13
 
14
+ require File.join(File.dirname(__FILE__), '..', '..', 'app', 'components', 'express_admin', 'definition_list')
15
+
14
16
  # should be a way to add this folder to rails' autoload paths
15
17
  components = Dir.glob(File.join(File.dirname(__FILE__), '..', '..', 'app', 'components', '**', '*.rb'))
16
18
  components.each {|component| require component }
@@ -1,3 +1,3 @@
1
1
  module ExpressAdmin
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
3
3
  end
Binary file
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- express_templates (0.9.0)
4
+ express_templates (0.9.2)
5
5
  activesupport (~> 4.2)
6
6
  arbre (~> 1.0)
7
7
  parslet (~> 1.6)
@@ -12,6 +12,9 @@ module ExpressTemplates
12
12
  #
13
13
  class Base < Arbre::Component
14
14
 
15
+ class_attribute :before_build_hooks
16
+ self.before_build_hooks = []
17
+
15
18
  def self.builder_method_and_class(method_name, klass)
16
19
  Arbre::Element::BuilderMethods.class_eval <<-EOF, __FILE__, __LINE__
17
20
  def #{method_name}(*args, &block)
@@ -45,19 +48,21 @@ module ExpressTemplates
45
48
  _default_attributes.merge!(attribs)
46
49
  end
47
50
 
48
- def self.before_build(proc_or_symbol = nil, &block)
49
- if proc_or_symbol.kind_of?(Symbol)
50
- define_method(:_before_build) do
51
- self.send(proc_or_symbol)
52
- end
51
+ def self.before_build(proc_or_symbol = nil, exclusive: false, &block)
52
+ hook = (proc_or_symbol || block)
53
+ unless hook.kind_of?(Symbol) or hook.respond_to?(:call)
54
+ raise "before_build requires symbol (method_name), proc or block"
55
+ end
56
+ if exclusive
57
+ self.before_build_hooks = [hook]
53
58
  else
54
- define_method(:_before_build, &(proc_or_symbol || block))
59
+ self.before_build_hooks += [hook]
55
60
  end
56
61
  end
57
62
 
58
63
  def build(*args, &block)
59
64
  _extract_class!(args)
60
- _before_build if respond_to?(:_before_build)
65
+ _run_before_build_hooks
61
66
  super(*args) {
62
67
  _build_body(&block) if respond_to?(:_build_body)
63
68
  }
@@ -68,7 +73,15 @@ module ExpressTemplates
68
73
  end
69
74
 
70
75
  def self.inherited(subclass)
71
- builder_method_and_class subclass.to_s.demodulize.underscore, subclass
76
+ builder_method_and_class subclass.builder_method_name, subclass
77
+ end
78
+
79
+ def self.builder_method_name
80
+ to_s.demodulize.underscore
81
+ end
82
+
83
+ def builder_method_name
84
+ self.class.builder_method_name
72
85
  end
73
86
 
74
87
  def self.descendants
@@ -82,6 +95,15 @@ module ExpressTemplates
82
95
 
83
96
 
84
97
  private
98
+ def _run_before_build_hooks
99
+ before_build_hooks.each do |hook|
100
+ if hook.kind_of?(Symbol)
101
+ self.send(hook)
102
+ else
103
+ instance_exec &hook
104
+ end
105
+ end
106
+ end
85
107
  def _extract_class!(args)
86
108
  add_class args.last.delete(:class) if args.last.try(:kind_of?, Hash)
87
109
  end
@@ -11,16 +11,15 @@ module ExpressTemplates
11
11
  submit_tag(value, input_attributes)
12
12
  }
13
13
 
14
- before_build -> {
15
- # if we are not part of a form, we don't get a default id
16
- begin
17
- super()
18
- rescue
19
- add_class(config[:wrapper_class])
20
- remove_class('submit')
21
- end
14
+ before_build(exclusive: true) {
15
+ add_class(config[:wrapper_class])
16
+ remove_class('submit')
22
17
  }
23
18
 
19
+ def resource_name
20
+ parent_form ? super : nil
21
+ end
22
+
24
23
  def value
25
24
  config[:value]
26
25
  end
@@ -1,3 +1,3 @@
1
1
  module ExpressTemplates
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
@@ -5245,3 +5245,1575 @@ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_in
5245
5245
  -----------------------------------------------------------------------------------------
5246
5246
  ProcTest: test_.source_body_captures_full_body_when_parens_around_parameters_not_provided
5247
5247
  -----------------------------------------------------------------------------------------
5248
+ ------------------------------------------------------------
5249
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
5250
+ ------------------------------------------------------------
5251
+ ---------------------------------------------------------------------------
5252
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
5253
+ ---------------------------------------------------------------------------
5254
+ ---------------------------------------------------------------------
5255
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
5256
+ ---------------------------------------------------------------------
5257
+ -------------------------------------------
5258
+ ExpressTemplatesTest: test_we_have_a_module
5259
+ -------------------------------------------
5260
+ ---------------------------------------------------------------
5261
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
5262
+ ---------------------------------------------------------------
5263
+ ---------------------------------------------------------
5264
+ ExpressFormTest: test_express_form_default_method_is_POST
5265
+ ---------------------------------------------------------
5266
+ -----------------------------------------------------
5267
+ ExpressFormTest: test_simplest_form_contains_form_tag
5268
+ -----------------------------------------------------
5269
+ ---------------------------------------------------------------
5270
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
5271
+ ---------------------------------------------------------------
5272
+ ---------------------------------------------------
5273
+ ExpressFormTest: test_simplest_form_contains_submit
5274
+ ---------------------------------------------------
5275
+ -------------------------------------------
5276
+ ExpressFormTest: test_simplest_form_renders
5277
+ -------------------------------------------
5278
+ -------------------------------------------------------------------
5279
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
5280
+ -------------------------------------------------------------------
5281
+ -----------------------------------------------------------
5282
+ ExpressFormTest: test_simplest_form_will_have_the_proper_id
5283
+ -----------------------------------------------------------
5284
+ -----------------------------------------
5285
+ HelloControllerTest: test_should_get_show
5286
+ -----------------------------------------
5287
+ Processing by HelloController#show as HTML
5288
+ Rendered hello/show.html.et within layouts/application (0.7ms)
5289
+ Completed 200 OK in 118ms (Views: 118.1ms)
5290
+ -----------------------------------------------------------------------------
5291
+ ConfigurableTest: test_.has_argument_adds_a_positional_configuration_argument
5292
+ -----------------------------------------------------------------------------
5293
+ ----------------------------------------------------------------------------------------
5294
+ ConfigurableTest: test_.has_argument_appends_supported_arguments_in_order_of_inheritence
5295
+ ----------------------------------------------------------------------------------------
5296
+ -------------------------------------------------------------------------------
5297
+ ConfigurableTest: test_.has_argument_as:_allows_overwrite_of_inherited_argument
5298
+ -------------------------------------------------------------------------------
5299
+ -----------------------------------------------------------------------------------------------------
5300
+ ConfigurableTest: test_.has_argument_makes_builder_arguments_accessible_by_name_according_to_position
5301
+ -----------------------------------------------------------------------------------------------------
5302
+ ---------------------------------------------------
5303
+ ConfigurableTest: test_default_values_are_supported
5304
+ ---------------------------------------------------
5305
+ ----------------------------------------------------------------------
5306
+ ConfigurableTest: test_default_values_for_attributes_can_be_overridden
5307
+ ----------------------------------------------------------------------
5308
+ ------------------------------------------------------------------------
5309
+ ConfigurableTest: test_does_not_pass_declared_options_as_html_attributes
5310
+ ------------------------------------------------------------------------
5311
+ -----------------------------------------------------------
5312
+ ConfigurableTest: test_has_no_id_attribute_if_not_specified
5313
+ -----------------------------------------------------------
5314
+ --------------------------------------------
5315
+ ConfigurableTest: test_options_are_inherited
5316
+ --------------------------------------------
5317
+ -------------------------------------------------------
5318
+ ConfigurableTest: test_renders_first_argument_as_dom_id
5319
+ -------------------------------------------------------
5320
+ ----------------------------------------------------
5321
+ ConfigurableTest: test_required_options_are_required
5322
+ ----------------------------------------------------
5323
+ --------------------------------------------------
5324
+ ConfigurableTest: test_supports_option_declaration
5325
+ --------------------------------------------------
5326
+ ---------------------------------------------------------------
5327
+ ConfigurableTest: test_unrecognized_options_raises_an_exception
5328
+ ---------------------------------------------------------------
5329
+ -------------------------------------------------------------
5330
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
5331
+ -------------------------------------------------------------
5332
+ -------------------------------------------------------
5333
+ CheckboxTest: test_checkbox_respects_label_after:_true_
5334
+ -------------------------------------------------------
5335
+ ------------------------------------------------------------------------------------
5336
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
5337
+ ------------------------------------------------------------------------------------
5338
+ --------------------------------------------------------------------------------
5339
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
5340
+ --------------------------------------------------------------------------------
5341
+ -------------------------------------------------------
5342
+ StringTest: test_String#to_view_code_returns_the_string
5343
+ -------------------------------------------------------
5344
+ -----------------------------------------------------------
5345
+ RadioTest: test_radio_has_correct_label_field_name_and_text
5346
+ -----------------------------------------------------------
5347
+ ------------------------------------------------------------------
5348
+ RadioTest: test_radio_options_from_collection_when_options_omitted
5349
+ ------------------------------------------------------------------
5350
+ ----------------------------------------------------------
5351
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
5352
+ ----------------------------------------------------------
5353
+ --------------------------------------------------------
5354
+ RadioTest: test_radio_options_present_with_class_'radio'
5355
+ --------------------------------------------------------
5356
+ -------------------------------------------------
5357
+ RadioTest: test_radio_requires_a_parent_component
5358
+ -------------------------------------------------
5359
+ ------------------------------------------------------------
5360
+ RadioTest: test_radio_throws_error_if_given_improper_options
5361
+ ------------------------------------------------------------
5362
+ ------------------------------------------------
5363
+ ProcTest: test_#source_body_handles_funky_bodies
5364
+ ------------------------------------------------
5365
+ ----------------------------------------------------------
5366
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
5367
+ ----------------------------------------------------------
5368
+ ------------------------------------------------------
5369
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
5370
+ ------------------------------------------------------
5371
+ ----------------------------------------------
5372
+ ProcTest: test_#source_returns_a_proc's_source
5373
+ ----------------------------------------------
5374
+ ---------------------------------------------------------------
5375
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
5376
+ ---------------------------------------------------------------
5377
+ ------------------------------------------------------------
5378
+ ProcTest: test_#source_works_with_a_block_containing_a_block
5379
+ ------------------------------------------------------------
5380
+ --------------------------------------------
5381
+ ProcTest: test_#source_works_with_a_do_block
5382
+ --------------------------------------------
5383
+ -----------------------------------------------------
5384
+ ProcTest: test_#source_works_with_a_single_line_block
5385
+ -----------------------------------------------------
5386
+ -------------------------------------------------
5387
+ ProcTest: test_#source_works_with_a_stabby_lambda
5388
+ -------------------------------------------------
5389
+ ----------------------------------------------------------------------------------------
5390
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
5391
+ ----------------------------------------------------------------------------------------
5392
+ -----------------------------------------------------------------------------------------
5393
+ ProcTest: test_.source_body_captures_full_body_when_parens_around_parameters_not_provided
5394
+ -----------------------------------------------------------------------------------------
5395
+ ----------------------------------------------
5396
+ SubmitTest: test_submit_accepts_a_class_option
5397
+ ----------------------------------------------
5398
+ --------------------------------------------------------
5399
+ SubmitTest: test_submit_accepts_a_value_and_class_option
5400
+ --------------------------------------------------------
5401
+ ----------------------------------------------------
5402
+ SubmitTest: test_submit_takes_string_param_for_value
5403
+ ----------------------------------------------------
5404
+ -------------------------------------
5405
+ BasicFieldsTest: test_all_fields_work
5406
+ -------------------------------------
5407
+ ---------------------------------------------------------------------------------
5408
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
5409
+ ---------------------------------------------------------------------------------
5410
+ ---------------------------------------------------------
5411
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
5412
+ ---------------------------------------------------------
5413
+ ---------------------------------------------------------
5414
+ BasicFieldsTest: test_passing_html_options_to_fields_work
5415
+ ---------------------------------------------------------
5416
+ -----------------------------------------------------------------------------
5417
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
5418
+ -----------------------------------------------------------------------------
5419
+ ----------------------------------------------------------
5420
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
5421
+ ----------------------------------------------------------
5422
+ ------------------------------------------------------------------------------------
5423
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
5424
+ ------------------------------------------------------------------------------------
5425
+ -------------------------------------------------------------------
5426
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
5427
+ -------------------------------------------------------------------
5428
+ ---------------------------------------------------------------------
5429
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
5430
+ ---------------------------------------------------------------------
5431
+ ---------------------------------------------------------------------
5432
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
5433
+ ---------------------------------------------------------------------
5434
+ ----------------------------------------------------
5435
+ InterpolatorTest: test_nested_with_outer_text_parses
5436
+ ----------------------------------------------------
5437
+ -------------------------------------------------------
5438
+ InterpolatorTest: test_nested_without_outer_text_parses
5439
+ -------------------------------------------------------
5440
+ ---------------------------------------------------------------------
5441
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
5442
+ ---------------------------------------------------------------------
5443
+ -------------------------------------------------
5444
+ InterpolatorTest: test_simplest_expression_parses
5445
+ -------------------------------------------------
5446
+ --------------------------------------------------------------------------------------------------
5447
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
5448
+ --------------------------------------------------------------------------------------------------
5449
+ -----------------------------------------------------------------------------------------
5450
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
5451
+ -----------------------------------------------------------------------------------------
5452
+ ---------------------------------------------------------------------------------------------------
5453
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
5454
+ ---------------------------------------------------------------------------------------------------
5455
+ ------------------------------------------------------------------------------------------------
5456
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
5457
+ ------------------------------------------------------------------------------------------------
5458
+ -----------------------------------------------------------------------------
5459
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
5460
+ -----------------------------------------------------------------------------
5461
+ --------------------------------------------------------------
5462
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
5463
+ --------------------------------------------------------------
5464
+ ------------------------------------------------------------------------
5465
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
5466
+ ------------------------------------------------------------------------
5467
+ ----------------------------------------------------------
5468
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
5469
+ ----------------------------------------------------------
5470
+ -----------------------------
5471
+ HandlerTest: test_locals_work
5472
+ -----------------------------
5473
+ ------------------------------------------------------------
5474
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
5475
+ ------------------------------------------------------------
5476
+ ----------------------------------
5477
+ HandlerTest: test_other_attributes
5478
+ ----------------------------------
5479
+ -------------------------------------------
5480
+ HandlerTest: test_our_handler_is_registered
5481
+ -------------------------------------------
5482
+ ---------------------------------------
5483
+ HandlerTest: test_string_in_block_works
5484
+ ---------------------------------------
5485
+ -----------------------------------------------------------------
5486
+ BaseTest: test_.contains_places_fragment_inside_the_enclosing_tag
5487
+ -----------------------------------------------------------------
5488
+ ---------------------------------------------------------
5489
+ BaseTest: test_.has_attributes_creates_default_attributes
5490
+ ---------------------------------------------------------
5491
+ -----------------------------------------------------
5492
+ BaseTest: test_.tag_name_determines_the_enclosing_tag
5493
+ -----------------------------------------------------
5494
+ --------------------------------------------------
5495
+ BaseTest: test_before_build_hook_runs_before_build
5496
+ --------------------------------------------------
5497
+ --------------------------------------------------------------
5498
+ BaseTest: test_class_name_is_dasherized_instead_of_underscored
5499
+ --------------------------------------------------------------
5500
+ -----------------------------------------------------------
5501
+ BaseTest: test_class_option_adds_a_class,_does_not_override
5502
+ -----------------------------------------------------------
5503
+ ----------------------------------------------------
5504
+ BaseTest: test_options_are_passed_to_html_attributes
5505
+ ----------------------------------------------------
5506
+ ----------------------------------------------------------------
5507
+ SelectTest: test_select_collection_works_using_collection_select
5508
+ ----------------------------------------------------------------
5509
+ ------------------------------------------
5510
+ SelectTest: test_select_comes_with_a_label
5511
+ ------------------------------------------
5512
+ --------------------------------------------------
5513
+ SelectTest: test_select_defaults_can_be_overridden
5514
+ --------------------------------------------------
5515
+ -------------------------------------------------------
5516
+ SelectTest: test_select_defaults_to_include_blank:_true
5517
+ -------------------------------------------------------
5518
+ ------------------------------------------------------------------------------------
5519
+ SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
5520
+ ------------------------------------------------------------------------------------
5521
+ ------------------------------------------------------------------------
5522
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
5523
+ ------------------------------------------------------------------------
5524
+ --------------------------------------------------------------
5525
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
5526
+ --------------------------------------------------------------
5527
+ -----------------------------------------------------------------------------------------
5528
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
5529
+ -----------------------------------------------------------------------------------------
5530
+ ---------------------------------------------------
5531
+ SelectTest: test_select_requires_a_parent_component
5532
+ ---------------------------------------------------
5533
+ ---------------------------------------------------------------------------
5534
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
5535
+ ---------------------------------------------------------------------------
5536
+ -------------------------------------------------------------------------
5537
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
5538
+ -------------------------------------------------------------------------
5539
+ ---------------------------------------------------------------------------------------------
5540
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
5541
+ ---------------------------------------------------------------------------------------------
5542
+ -----------------------------------------------------------------
5543
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
5544
+ -----------------------------------------------------------------
5545
+ ------------------------------------------------------------------
5546
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
5547
+ ------------------------------------------------------------------
5548
+ --------------------------------------------
5549
+ CompilerTest: test_.compile_returns_a_string
5550
+ --------------------------------------------
5551
+ ------------------------------------------------
5552
+ ProcTest: test_#source_body_handles_funky_bodies
5553
+ ------------------------------------------------
5554
+ ----------------------------------------------------------
5555
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
5556
+ ----------------------------------------------------------
5557
+ ------------------------------------------------------
5558
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
5559
+ ------------------------------------------------------
5560
+ ----------------------------------------------
5561
+ ProcTest: test_#source_returns_a_proc's_source
5562
+ ----------------------------------------------
5563
+ ---------------------------------------------------------------
5564
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
5565
+ ---------------------------------------------------------------
5566
+ ------------------------------------------------------------
5567
+ ProcTest: test_#source_works_with_a_block_containing_a_block
5568
+ ------------------------------------------------------------
5569
+ --------------------------------------------
5570
+ ProcTest: test_#source_works_with_a_do_block
5571
+ --------------------------------------------
5572
+ -----------------------------------------------------
5573
+ ProcTest: test_#source_works_with_a_single_line_block
5574
+ -----------------------------------------------------
5575
+ -------------------------------------------------
5576
+ ProcTest: test_#source_works_with_a_stabby_lambda
5577
+ -------------------------------------------------
5578
+ ----------------------------------------------------------------------------------------
5579
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
5580
+ ----------------------------------------------------------------------------------------
5581
+ -----------------------------------------------------------------------------------------
5582
+ ProcTest: test_.source_body_captures_full_body_when_parens_around_parameters_not_provided
5583
+ -----------------------------------------------------------------------------------------
5584
+ -----------------------------------------------------------------
5585
+ BaseTest: test_.contains_places_fragment_inside_the_enclosing_tag
5586
+ -----------------------------------------------------------------
5587
+ ---------------------------------------------------------
5588
+ BaseTest: test_.has_attributes_creates_default_attributes
5589
+ ---------------------------------------------------------
5590
+ -----------------------------------------------------
5591
+ BaseTest: test_.tag_name_determines_the_enclosing_tag
5592
+ -----------------------------------------------------
5593
+ --------------------------------------------------
5594
+ BaseTest: test_before_build_hook_runs_before_build
5595
+ --------------------------------------------------
5596
+ --------------------------------------------------------------
5597
+ BaseTest: test_class_name_is_dasherized_instead_of_underscored
5598
+ --------------------------------------------------------------
5599
+ -----------------------------------------------------------
5600
+ BaseTest: test_class_option_adds_a_class,_does_not_override
5601
+ -----------------------------------------------------------
5602
+ ----------------------------------------------------
5603
+ BaseTest: test_options_are_passed_to_html_attributes
5604
+ ----------------------------------------------------
5605
+ ----------------------------------------------
5606
+ SubmitTest: test_submit_accepts_a_class_option
5607
+ ----------------------------------------------
5608
+ --------------------------------------------------------
5609
+ SubmitTest: test_submit_accepts_a_value_and_class_option
5610
+ --------------------------------------------------------
5611
+ ----------------------------------------------------
5612
+ SubmitTest: test_submit_takes_string_param_for_value
5613
+ ----------------------------------------------------
5614
+ --------------------------------------------------------------
5615
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
5616
+ --------------------------------------------------------------
5617
+ ------------------------------------------------------------------------
5618
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
5619
+ ------------------------------------------------------------------------
5620
+ ----------------------------------------------------------
5621
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
5622
+ ----------------------------------------------------------
5623
+ -----------------------------
5624
+ HandlerTest: test_locals_work
5625
+ -----------------------------
5626
+ ------------------------------------------------------------
5627
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
5628
+ ------------------------------------------------------------
5629
+ ----------------------------------
5630
+ HandlerTest: test_other_attributes
5631
+ ----------------------------------
5632
+ -------------------------------------------
5633
+ HandlerTest: test_our_handler_is_registered
5634
+ -------------------------------------------
5635
+ ---------------------------------------
5636
+ HandlerTest: test_string_in_block_works
5637
+ ---------------------------------------
5638
+ ---------------------------------------------------------------
5639
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
5640
+ ---------------------------------------------------------------
5641
+ ---------------------------------------------------------
5642
+ ExpressFormTest: test_express_form_default_method_is_POST
5643
+ ---------------------------------------------------------
5644
+ -----------------------------------------------------
5645
+ ExpressFormTest: test_simplest_form_contains_form_tag
5646
+ -----------------------------------------------------
5647
+ ---------------------------------------------------------------
5648
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
5649
+ ---------------------------------------------------------------
5650
+ ---------------------------------------------------
5651
+ ExpressFormTest: test_simplest_form_contains_submit
5652
+ ---------------------------------------------------
5653
+ -------------------------------------------
5654
+ ExpressFormTest: test_simplest_form_renders
5655
+ -------------------------------------------
5656
+ -------------------------------------------------------------------
5657
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
5658
+ -------------------------------------------------------------------
5659
+ -----------------------------------------------------------
5660
+ ExpressFormTest: test_simplest_form_will_have_the_proper_id
5661
+ -----------------------------------------------------------
5662
+ ------------------------------------------------------------------------------------
5663
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
5664
+ ------------------------------------------------------------------------------------
5665
+ -------------------------------------------------------------------
5666
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
5667
+ -------------------------------------------------------------------
5668
+ ---------------------------------------------------------------------
5669
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
5670
+ ---------------------------------------------------------------------
5671
+ ---------------------------------------------------------------------
5672
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
5673
+ ---------------------------------------------------------------------
5674
+ ----------------------------------------------------
5675
+ InterpolatorTest: test_nested_with_outer_text_parses
5676
+ ----------------------------------------------------
5677
+ -------------------------------------------------------
5678
+ InterpolatorTest: test_nested_without_outer_text_parses
5679
+ -------------------------------------------------------
5680
+ ---------------------------------------------------------------------
5681
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
5682
+ ---------------------------------------------------------------------
5683
+ -------------------------------------------------
5684
+ InterpolatorTest: test_simplest_expression_parses
5685
+ -------------------------------------------------
5686
+ -----------------------------------------------------------
5687
+ RadioTest: test_radio_has_correct_label_field_name_and_text
5688
+ -----------------------------------------------------------
5689
+ ------------------------------------------------------------------
5690
+ RadioTest: test_radio_options_from_collection_when_options_omitted
5691
+ ------------------------------------------------------------------
5692
+ ----------------------------------------------------------
5693
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
5694
+ ----------------------------------------------------------
5695
+ --------------------------------------------------------
5696
+ RadioTest: test_radio_options_present_with_class_'radio'
5697
+ --------------------------------------------------------
5698
+ -------------------------------------------------
5699
+ RadioTest: test_radio_requires_a_parent_component
5700
+ -------------------------------------------------
5701
+ ------------------------------------------------------------
5702
+ RadioTest: test_radio_throws_error_if_given_improper_options
5703
+ ------------------------------------------------------------
5704
+ --------------------------------------------------------------------------------------------------
5705
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
5706
+ --------------------------------------------------------------------------------------------------
5707
+ -----------------------------------------------------------------------------------------
5708
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
5709
+ -----------------------------------------------------------------------------------------
5710
+ ---------------------------------------------------------------------------------------------------
5711
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
5712
+ ---------------------------------------------------------------------------------------------------
5713
+ ------------------------------------------------------------------------------------------------
5714
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
5715
+ ------------------------------------------------------------------------------------------------
5716
+ -----------------------------------------------------------------------------
5717
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
5718
+ -----------------------------------------------------------------------------
5719
+ -----------------------------------------------------------------------------
5720
+ ConfigurableTest: test_.has_argument_adds_a_positional_configuration_argument
5721
+ -----------------------------------------------------------------------------
5722
+ ----------------------------------------------------------------------------------------
5723
+ ConfigurableTest: test_.has_argument_appends_supported_arguments_in_order_of_inheritence
5724
+ ----------------------------------------------------------------------------------------
5725
+ -------------------------------------------------------------------------------
5726
+ ConfigurableTest: test_.has_argument_as:_allows_overwrite_of_inherited_argument
5727
+ -------------------------------------------------------------------------------
5728
+ -----------------------------------------------------------------------------------------------------
5729
+ ConfigurableTest: test_.has_argument_makes_builder_arguments_accessible_by_name_according_to_position
5730
+ -----------------------------------------------------------------------------------------------------
5731
+ ---------------------------------------------------
5732
+ ConfigurableTest: test_default_values_are_supported
5733
+ ---------------------------------------------------
5734
+ ----------------------------------------------------------------------
5735
+ ConfigurableTest: test_default_values_for_attributes_can_be_overridden
5736
+ ----------------------------------------------------------------------
5737
+ ------------------------------------------------------------------------
5738
+ ConfigurableTest: test_does_not_pass_declared_options_as_html_attributes
5739
+ ------------------------------------------------------------------------
5740
+ -----------------------------------------------------------
5741
+ ConfigurableTest: test_has_no_id_attribute_if_not_specified
5742
+ -----------------------------------------------------------
5743
+ --------------------------------------------
5744
+ ConfigurableTest: test_options_are_inherited
5745
+ --------------------------------------------
5746
+ -------------------------------------------------------
5747
+ ConfigurableTest: test_renders_first_argument_as_dom_id
5748
+ -------------------------------------------------------
5749
+ ----------------------------------------------------
5750
+ ConfigurableTest: test_required_options_are_required
5751
+ ----------------------------------------------------
5752
+ --------------------------------------------------
5753
+ ConfigurableTest: test_supports_option_declaration
5754
+ --------------------------------------------------
5755
+ ---------------------------------------------------------------
5756
+ ConfigurableTest: test_unrecognized_options_raises_an_exception
5757
+ ---------------------------------------------------------------
5758
+ -------------------------------------------------------------
5759
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
5760
+ -------------------------------------------------------------
5761
+ -------------------------------------------------------
5762
+ CheckboxTest: test_checkbox_respects_label_after:_true_
5763
+ -------------------------------------------------------
5764
+ ------------------------------------------------------------------------------------
5765
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
5766
+ ------------------------------------------------------------------------------------
5767
+ --------------------------------------------------------------------------------
5768
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
5769
+ --------------------------------------------------------------------------------
5770
+ -------------------------------------------------------
5771
+ StringTest: test_String#to_view_code_returns_the_string
5772
+ -------------------------------------------------------
5773
+ ------------------------------------------------------------
5774
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
5775
+ ------------------------------------------------------------
5776
+ ---------------------------------------------------------------------------
5777
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
5778
+ ---------------------------------------------------------------------------
5779
+ ----------------------------------------------------------------
5780
+ SelectTest: test_select_collection_works_using_collection_select
5781
+ ----------------------------------------------------------------
5782
+ ------------------------------------------
5783
+ SelectTest: test_select_comes_with_a_label
5784
+ ------------------------------------------
5785
+ --------------------------------------------------
5786
+ SelectTest: test_select_defaults_can_be_overridden
5787
+ --------------------------------------------------
5788
+ -------------------------------------------------------
5789
+ SelectTest: test_select_defaults_to_include_blank:_true
5790
+ -------------------------------------------------------
5791
+ ------------------------------------------------------------------------------------
5792
+ SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
5793
+ ------------------------------------------------------------------------------------
5794
+ ------------------------------------------------------------------------
5795
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
5796
+ ------------------------------------------------------------------------
5797
+ --------------------------------------------------------------
5798
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
5799
+ --------------------------------------------------------------
5800
+ -----------------------------------------------------------------------------------------
5801
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
5802
+ -----------------------------------------------------------------------------------------
5803
+ ---------------------------------------------------
5804
+ SelectTest: test_select_requires_a_parent_component
5805
+ ---------------------------------------------------
5806
+ ---------------------------------------------------------------------------
5807
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
5808
+ ---------------------------------------------------------------------------
5809
+ -------------------------------------------------------------------------
5810
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
5811
+ -------------------------------------------------------------------------
5812
+ -------------------------------------
5813
+ BasicFieldsTest: test_all_fields_work
5814
+ -------------------------------------
5815
+ ---------------------------------------------------------------------------------
5816
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
5817
+ ---------------------------------------------------------------------------------
5818
+ ---------------------------------------------------------
5819
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
5820
+ ---------------------------------------------------------
5821
+ ---------------------------------------------------------
5822
+ BasicFieldsTest: test_passing_html_options_to_fields_work
5823
+ ---------------------------------------------------------
5824
+ -----------------------------------------------------------------------------
5825
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
5826
+ -----------------------------------------------------------------------------
5827
+ ----------------------------------------------------------
5828
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
5829
+ ----------------------------------------------------------
5830
+ --------------------------------------------
5831
+ CompilerTest: test_.compile_returns_a_string
5832
+ --------------------------------------------
5833
+ ---------------------------------------------------------------------------------------------
5834
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
5835
+ ---------------------------------------------------------------------------------------------
5836
+ -----------------------------------------------------------------
5837
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
5838
+ -----------------------------------------------------------------
5839
+ ------------------------------------------------------------------
5840
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
5841
+ ------------------------------------------------------------------
5842
+ -----------------------------------------
5843
+ HelloControllerTest: test_should_get_show
5844
+ -----------------------------------------
5845
+ Processing by HelloController#show as HTML
5846
+ Rendered hello/show.html.et within layouts/application (0.7ms)
5847
+ Completed 200 OK in 108ms (Views: 107.8ms)
5848
+ ---------------------------------------------------------------------
5849
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
5850
+ ---------------------------------------------------------------------
5851
+ -------------------------------------------
5852
+ ExpressTemplatesTest: test_we_have_a_module
5853
+ -------------------------------------------
5854
+ ----------------------------------------------------
5855
+ SubmitTest: test_submit_takes_string_param_for_value
5856
+ ----------------------------------------------------
5857
+ ----------------------------------------------------
5858
+ SubmitTest: test_submit_takes_string_param_for_value
5859
+ ----------------------------------------------------
5860
+ ----------------------------------------------------
5861
+ SubmitTest: test_submit_takes_string_param_for_value
5862
+ ----------------------------------------------------
5863
+ ----------------------------------------------------
5864
+ SubmitTest: test_submit_takes_string_param_for_value
5865
+ ----------------------------------------------------
5866
+ ----------------------------------------------------
5867
+ SubmitTest: test_submit_takes_string_param_for_value
5868
+ ----------------------------------------------------
5869
+ ----------------------------------------------------
5870
+ SubmitTest: test_submit_takes_string_param_for_value
5871
+ ----------------------------------------------------
5872
+ ----------------------------------------------------
5873
+ SubmitTest: test_submit_takes_string_param_for_value
5874
+ ----------------------------------------------------
5875
+ ----------------------------------------------------
5876
+ SubmitTest: test_submit_takes_string_param_for_value
5877
+ ----------------------------------------------------
5878
+ ----------------------------------------------------
5879
+ SubmitTest: test_submit_takes_string_param_for_value
5880
+ ----------------------------------------------------
5881
+ ----------------------------------------------------
5882
+ SubmitTest: test_submit_takes_string_param_for_value
5883
+ ----------------------------------------------------
5884
+ ----------------------------------------------------
5885
+ SubmitTest: test_submit_takes_string_param_for_value
5886
+ ----------------------------------------------------
5887
+ ----------------------------------------------------
5888
+ SubmitTest: test_submit_takes_string_param_for_value
5889
+ ----------------------------------------------------
5890
+ ----------------------------------------------------
5891
+ SubmitTest: test_submit_takes_string_param_for_value
5892
+ ----------------------------------------------------
5893
+ ----------------------------------------------------
5894
+ SubmitTest: test_submit_takes_string_param_for_value
5895
+ ----------------------------------------------------
5896
+ ----------------------------------------------------
5897
+ SubmitTest: test_submit_takes_string_param_for_value
5898
+ ----------------------------------------------------
5899
+ ----------------------------------------------------
5900
+ SubmitTest: test_submit_takes_string_param_for_value
5901
+ ----------------------------------------------------
5902
+ ----------------------------------------------
5903
+ SubmitTest: test_submit_accepts_a_class_option
5904
+ ----------------------------------------------
5905
+ --------------------------------------------------------
5906
+ SubmitTest: test_submit_accepts_a_value_and_class_option
5907
+ --------------------------------------------------------
5908
+ ----------------------------------------------------
5909
+ SubmitTest: test_submit_takes_string_param_for_value
5910
+ ----------------------------------------------------
5911
+ ----------------------------------------------
5912
+ SubmitTest: test_submit_accepts_a_class_option
5913
+ ----------------------------------------------
5914
+ --------------------------------------------------------
5915
+ SubmitTest: test_submit_accepts_a_value_and_class_option
5916
+ --------------------------------------------------------
5917
+ ----------------------------------------------------
5918
+ SubmitTest: test_submit_takes_string_param_for_value
5919
+ ----------------------------------------------------
5920
+ -----------------------------------------------------------
5921
+ RadioTest: test_radio_has_correct_label_field_name_and_text
5922
+ -----------------------------------------------------------
5923
+ ------------------------------------------------------------------
5924
+ RadioTest: test_radio_options_from_collection_when_options_omitted
5925
+ ------------------------------------------------------------------
5926
+ ----------------------------------------------------------
5927
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
5928
+ ----------------------------------------------------------
5929
+ --------------------------------------------------------
5930
+ RadioTest: test_radio_options_present_with_class_'radio'
5931
+ --------------------------------------------------------
5932
+ -------------------------------------------------
5933
+ RadioTest: test_radio_requires_a_parent_component
5934
+ -------------------------------------------------
5935
+ ------------------------------------------------------------
5936
+ RadioTest: test_radio_throws_error_if_given_improper_options
5937
+ ------------------------------------------------------------
5938
+ -----------------------------------------------------------------
5939
+ BaseTest: test_.contains_places_fragment_inside_the_enclosing_tag
5940
+ -----------------------------------------------------------------
5941
+ ---------------------------------------------------------
5942
+ BaseTest: test_.has_attributes_creates_default_attributes
5943
+ ---------------------------------------------------------
5944
+ -----------------------------------------------------
5945
+ BaseTest: test_.tag_name_determines_the_enclosing_tag
5946
+ -----------------------------------------------------
5947
+ --------------------------------------------------
5948
+ BaseTest: test_before_build_hook_runs_before_build
5949
+ --------------------------------------------------
5950
+ --------------------------------------------------------------
5951
+ BaseTest: test_class_name_is_dasherized_instead_of_underscored
5952
+ --------------------------------------------------------------
5953
+ -----------------------------------------------------------
5954
+ BaseTest: test_class_option_adds_a_class,_does_not_override
5955
+ -----------------------------------------------------------
5956
+ ----------------------------------------------------
5957
+ BaseTest: test_options_are_passed_to_html_attributes
5958
+ ----------------------------------------------------
5959
+ -------------------------------------------------------------
5960
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
5961
+ -------------------------------------------------------------
5962
+ -------------------------------------------------------
5963
+ CheckboxTest: test_checkbox_respects_label_after:_true_
5964
+ -------------------------------------------------------
5965
+ ---------------------------------------------------------------------
5966
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
5967
+ ---------------------------------------------------------------------
5968
+ -------------------------------------------
5969
+ ExpressTemplatesTest: test_we_have_a_module
5970
+ -------------------------------------------
5971
+ ----------------------------------------------------------------
5972
+ SelectTest: test_select_collection_works_using_collection_select
5973
+ ----------------------------------------------------------------
5974
+ ------------------------------------------
5975
+ SelectTest: test_select_comes_with_a_label
5976
+ ------------------------------------------
5977
+ --------------------------------------------------
5978
+ SelectTest: test_select_defaults_can_be_overridden
5979
+ --------------------------------------------------
5980
+ -------------------------------------------------------
5981
+ SelectTest: test_select_defaults_to_include_blank:_true
5982
+ -------------------------------------------------------
5983
+ ------------------------------------------------------------------------------------
5984
+ SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
5985
+ ------------------------------------------------------------------------------------
5986
+ ------------------------------------------------------------------------
5987
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
5988
+ ------------------------------------------------------------------------
5989
+ --------------------------------------------------------------
5990
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
5991
+ --------------------------------------------------------------
5992
+ -----------------------------------------------------------------------------------------
5993
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
5994
+ -----------------------------------------------------------------------------------------
5995
+ ---------------------------------------------------
5996
+ SelectTest: test_select_requires_a_parent_component
5997
+ ---------------------------------------------------
5998
+ ---------------------------------------------------------------------------
5999
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
6000
+ ---------------------------------------------------------------------------
6001
+ -------------------------------------------------------------------------
6002
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
6003
+ -------------------------------------------------------------------------
6004
+ --------------------------------------------
6005
+ CompilerTest: test_.compile_returns_a_string
6006
+ --------------------------------------------
6007
+ ------------------------------------------------------------------------------------
6008
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
6009
+ ------------------------------------------------------------------------------------
6010
+ -------------------------------------------------------------------
6011
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
6012
+ -------------------------------------------------------------------
6013
+ ---------------------------------------------------------------------
6014
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
6015
+ ---------------------------------------------------------------------
6016
+ ---------------------------------------------------------------------
6017
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
6018
+ ---------------------------------------------------------------------
6019
+ ----------------------------------------------------
6020
+ InterpolatorTest: test_nested_with_outer_text_parses
6021
+ ----------------------------------------------------
6022
+ -------------------------------------------------------
6023
+ InterpolatorTest: test_nested_without_outer_text_parses
6024
+ -------------------------------------------------------
6025
+ ---------------------------------------------------------------------
6026
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
6027
+ ---------------------------------------------------------------------
6028
+ -------------------------------------------------
6029
+ InterpolatorTest: test_simplest_expression_parses
6030
+ -------------------------------------------------
6031
+ -----------------------------------------
6032
+ HelloControllerTest: test_should_get_show
6033
+ -----------------------------------------
6034
+ Processing by HelloController#show as HTML
6035
+ Rendered hello/show.html.et within layouts/application (0.6ms)
6036
+ Completed 200 OK in 111ms (Views: 111.1ms)
6037
+ --------------------------------------------------------------
6038
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
6039
+ --------------------------------------------------------------
6040
+ ------------------------------------------------------------------------
6041
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
6042
+ ------------------------------------------------------------------------
6043
+ ----------------------------------------------------------
6044
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
6045
+ ----------------------------------------------------------
6046
+ -----------------------------
6047
+ HandlerTest: test_locals_work
6048
+ -----------------------------
6049
+ ------------------------------------------------------------
6050
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
6051
+ ------------------------------------------------------------
6052
+ ----------------------------------
6053
+ HandlerTest: test_other_attributes
6054
+ ----------------------------------
6055
+ -------------------------------------------
6056
+ HandlerTest: test_our_handler_is_registered
6057
+ -------------------------------------------
6058
+ ---------------------------------------
6059
+ HandlerTest: test_string_in_block_works
6060
+ ---------------------------------------
6061
+ -------------------------------------
6062
+ BasicFieldsTest: test_all_fields_work
6063
+ -------------------------------------
6064
+ ---------------------------------------------------------------------------------
6065
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
6066
+ ---------------------------------------------------------------------------------
6067
+ ---------------------------------------------------------
6068
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
6069
+ ---------------------------------------------------------
6070
+ ---------------------------------------------------------
6071
+ BasicFieldsTest: test_passing_html_options_to_fields_work
6072
+ ---------------------------------------------------------
6073
+ -----------------------------------------------------------------------------
6074
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
6075
+ -----------------------------------------------------------------------------
6076
+ ----------------------------------------------------------
6077
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
6078
+ ----------------------------------------------------------
6079
+ ---------------------------------------------------------------------------------------------
6080
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
6081
+ ---------------------------------------------------------------------------------------------
6082
+ -----------------------------------------------------------------
6083
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
6084
+ -----------------------------------------------------------------
6085
+ ------------------------------------------------------------------
6086
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
6087
+ ------------------------------------------------------------------
6088
+ ------------------------------------------------
6089
+ ProcTest: test_#source_body_handles_funky_bodies
6090
+ ------------------------------------------------
6091
+ ----------------------------------------------------------
6092
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
6093
+ ----------------------------------------------------------
6094
+ ------------------------------------------------------
6095
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
6096
+ ------------------------------------------------------
6097
+ ----------------------------------------------
6098
+ ProcTest: test_#source_returns_a_proc's_source
6099
+ ----------------------------------------------
6100
+ ---------------------------------------------------------------
6101
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
6102
+ ---------------------------------------------------------------
6103
+ ------------------------------------------------------------
6104
+ ProcTest: test_#source_works_with_a_block_containing_a_block
6105
+ ------------------------------------------------------------
6106
+ --------------------------------------------
6107
+ ProcTest: test_#source_works_with_a_do_block
6108
+ --------------------------------------------
6109
+ -----------------------------------------------------
6110
+ ProcTest: test_#source_works_with_a_single_line_block
6111
+ -----------------------------------------------------
6112
+ -------------------------------------------------
6113
+ ProcTest: test_#source_works_with_a_stabby_lambda
6114
+ -------------------------------------------------
6115
+ ----------------------------------------------------------------------------------------
6116
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
6117
+ ----------------------------------------------------------------------------------------
6118
+ -----------------------------------------------------------------------------------------
6119
+ ProcTest: test_.source_body_captures_full_body_when_parens_around_parameters_not_provided
6120
+ -----------------------------------------------------------------------------------------
6121
+ ---------------------------------------------------------------
6122
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
6123
+ ---------------------------------------------------------------
6124
+ ---------------------------------------------------------
6125
+ ExpressFormTest: test_express_form_default_method_is_POST
6126
+ ---------------------------------------------------------
6127
+ -----------------------------------------------------
6128
+ ExpressFormTest: test_simplest_form_contains_form_tag
6129
+ -----------------------------------------------------
6130
+ ---------------------------------------------------------------
6131
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
6132
+ ---------------------------------------------------------------
6133
+ ---------------------------------------------------
6134
+ ExpressFormTest: test_simplest_form_contains_submit
6135
+ ---------------------------------------------------
6136
+ -------------------------------------------
6137
+ ExpressFormTest: test_simplest_form_renders
6138
+ -------------------------------------------
6139
+ -------------------------------------------------------------------
6140
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
6141
+ -------------------------------------------------------------------
6142
+ -----------------------------------------------------------
6143
+ ExpressFormTest: test_simplest_form_will_have_the_proper_id
6144
+ -----------------------------------------------------------
6145
+ ------------------------------------------------------------
6146
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
6147
+ ------------------------------------------------------------
6148
+ ---------------------------------------------------------------------------
6149
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
6150
+ ---------------------------------------------------------------------------
6151
+ --------------------------------------------------------------------------------------------------
6152
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
6153
+ --------------------------------------------------------------------------------------------------
6154
+ -----------------------------------------------------------------------------------------
6155
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
6156
+ -----------------------------------------------------------------------------------------
6157
+ ---------------------------------------------------------------------------------------------------
6158
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
6159
+ ---------------------------------------------------------------------------------------------------
6160
+ ------------------------------------------------------------------------------------------------
6161
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
6162
+ ------------------------------------------------------------------------------------------------
6163
+ -----------------------------------------------------------------------------
6164
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
6165
+ -----------------------------------------------------------------------------
6166
+ ------------------------------------------------------------------------------------
6167
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
6168
+ ------------------------------------------------------------------------------------
6169
+ --------------------------------------------------------------------------------
6170
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
6171
+ --------------------------------------------------------------------------------
6172
+ -------------------------------------------------------
6173
+ StringTest: test_String#to_view_code_returns_the_string
6174
+ -------------------------------------------------------
6175
+ -----------------------------------------------------------------------------
6176
+ ConfigurableTest: test_.has_argument_adds_a_positional_configuration_argument
6177
+ -----------------------------------------------------------------------------
6178
+ ----------------------------------------------------------------------------------------
6179
+ ConfigurableTest: test_.has_argument_appends_supported_arguments_in_order_of_inheritence
6180
+ ----------------------------------------------------------------------------------------
6181
+ -------------------------------------------------------------------------------
6182
+ ConfigurableTest: test_.has_argument_as:_allows_overwrite_of_inherited_argument
6183
+ -------------------------------------------------------------------------------
6184
+ -----------------------------------------------------------------------------------------------------
6185
+ ConfigurableTest: test_.has_argument_makes_builder_arguments_accessible_by_name_according_to_position
6186
+ -----------------------------------------------------------------------------------------------------
6187
+ ---------------------------------------------------
6188
+ ConfigurableTest: test_default_values_are_supported
6189
+ ---------------------------------------------------
6190
+ ----------------------------------------------------------------------
6191
+ ConfigurableTest: test_default_values_for_attributes_can_be_overridden
6192
+ ----------------------------------------------------------------------
6193
+ ------------------------------------------------------------------------
6194
+ ConfigurableTest: test_does_not_pass_declared_options_as_html_attributes
6195
+ ------------------------------------------------------------------------
6196
+ -----------------------------------------------------------
6197
+ ConfigurableTest: test_has_no_id_attribute_if_not_specified
6198
+ -----------------------------------------------------------
6199
+ --------------------------------------------
6200
+ ConfigurableTest: test_options_are_inherited
6201
+ --------------------------------------------
6202
+ -------------------------------------------------------
6203
+ ConfigurableTest: test_renders_first_argument_as_dom_id
6204
+ -------------------------------------------------------
6205
+ ----------------------------------------------------
6206
+ ConfigurableTest: test_required_options_are_required
6207
+ ----------------------------------------------------
6208
+ --------------------------------------------------
6209
+ ConfigurableTest: test_supports_option_declaration
6210
+ --------------------------------------------------
6211
+ ---------------------------------------------------------------
6212
+ ConfigurableTest: test_unrecognized_options_raises_an_exception
6213
+ ---------------------------------------------------------------
6214
+ -----------------------------------------------------------------------------
6215
+ ConfigurableTest: test_.has_argument_adds_a_positional_configuration_argument
6216
+ -----------------------------------------------------------------------------
6217
+ ----------------------------------------------------------------------------------------
6218
+ ConfigurableTest: test_.has_argument_appends_supported_arguments_in_order_of_inheritence
6219
+ ----------------------------------------------------------------------------------------
6220
+ -------------------------------------------------------------------------------
6221
+ ConfigurableTest: test_.has_argument_as:_allows_overwrite_of_inherited_argument
6222
+ -------------------------------------------------------------------------------
6223
+ -----------------------------------------------------------------------------------------------------
6224
+ ConfigurableTest: test_.has_argument_makes_builder_arguments_accessible_by_name_according_to_position
6225
+ -----------------------------------------------------------------------------------------------------
6226
+ ---------------------------------------------------
6227
+ ConfigurableTest: test_default_values_are_supported
6228
+ ---------------------------------------------------
6229
+ ----------------------------------------------------------------------
6230
+ ConfigurableTest: test_default_values_for_attributes_can_be_overridden
6231
+ ----------------------------------------------------------------------
6232
+ ------------------------------------------------------------------------
6233
+ ConfigurableTest: test_does_not_pass_declared_options_as_html_attributes
6234
+ ------------------------------------------------------------------------
6235
+ -----------------------------------------------------------
6236
+ ConfigurableTest: test_has_no_id_attribute_if_not_specified
6237
+ -----------------------------------------------------------
6238
+ --------------------------------------------
6239
+ ConfigurableTest: test_options_are_inherited
6240
+ --------------------------------------------
6241
+ -------------------------------------------------------
6242
+ ConfigurableTest: test_renders_first_argument_as_dom_id
6243
+ -------------------------------------------------------
6244
+ ----------------------------------------------------
6245
+ ConfigurableTest: test_required_options_are_required
6246
+ ----------------------------------------------------
6247
+ --------------------------------------------------
6248
+ ConfigurableTest: test_supports_option_declaration
6249
+ --------------------------------------------------
6250
+ ---------------------------------------------------------------
6251
+ ConfigurableTest: test_unrecognized_options_raises_an_exception
6252
+ ---------------------------------------------------------------
6253
+ --------------------------------------------------------------
6254
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
6255
+ --------------------------------------------------------------
6256
+ ------------------------------------------------------------------------
6257
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
6258
+ ------------------------------------------------------------------------
6259
+ ----------------------------------------------------------
6260
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
6261
+ ----------------------------------------------------------
6262
+ -----------------------------
6263
+ HandlerTest: test_locals_work
6264
+ -----------------------------
6265
+ ------------------------------------------------------------
6266
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
6267
+ ------------------------------------------------------------
6268
+ ----------------------------------
6269
+ HandlerTest: test_other_attributes
6270
+ ----------------------------------
6271
+ -------------------------------------------
6272
+ HandlerTest: test_our_handler_is_registered
6273
+ -------------------------------------------
6274
+ ---------------------------------------
6275
+ HandlerTest: test_string_in_block_works
6276
+ ---------------------------------------
6277
+ ----------------------------------------------------------------
6278
+ SelectTest: test_select_collection_works_using_collection_select
6279
+ ----------------------------------------------------------------
6280
+ ------------------------------------------
6281
+ SelectTest: test_select_comes_with_a_label
6282
+ ------------------------------------------
6283
+ --------------------------------------------------
6284
+ SelectTest: test_select_defaults_can_be_overridden
6285
+ --------------------------------------------------
6286
+ -------------------------------------------------------
6287
+ SelectTest: test_select_defaults_to_include_blank:_true
6288
+ -------------------------------------------------------
6289
+ ------------------------------------------------------------------------------------
6290
+ SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
6291
+ ------------------------------------------------------------------------------------
6292
+ ------------------------------------------------------------------------
6293
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
6294
+ ------------------------------------------------------------------------
6295
+ --------------------------------------------------------------
6296
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
6297
+ --------------------------------------------------------------
6298
+ -----------------------------------------------------------------------------------------
6299
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
6300
+ -----------------------------------------------------------------------------------------
6301
+ ---------------------------------------------------
6302
+ SelectTest: test_select_requires_a_parent_component
6303
+ ---------------------------------------------------
6304
+ ---------------------------------------------------------------------------
6305
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
6306
+ ---------------------------------------------------------------------------
6307
+ -------------------------------------------------------------------------
6308
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
6309
+ -------------------------------------------------------------------------
6310
+ ------------------------------------------------------------------------------------
6311
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
6312
+ ------------------------------------------------------------------------------------
6313
+ --------------------------------------------------------------------------------
6314
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
6315
+ --------------------------------------------------------------------------------
6316
+ -------------------------------------------------------
6317
+ StringTest: test_String#to_view_code_returns_the_string
6318
+ -------------------------------------------------------
6319
+ ---------------------------------------------------------------------------------------------
6320
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
6321
+ ---------------------------------------------------------------------------------------------
6322
+ -----------------------------------------------------------------
6323
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
6324
+ -----------------------------------------------------------------
6325
+ ------------------------------------------------------------------
6326
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
6327
+ ------------------------------------------------------------------
6328
+ ---------------------------------------------------------------------
6329
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
6330
+ ---------------------------------------------------------------------
6331
+ -------------------------------------------
6332
+ ExpressTemplatesTest: test_we_have_a_module
6333
+ -------------------------------------------
6334
+ ---------------------------------------------------------------
6335
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
6336
+ ---------------------------------------------------------------
6337
+ ---------------------------------------------------------
6338
+ ExpressFormTest: test_express_form_default_method_is_POST
6339
+ ---------------------------------------------------------
6340
+ -----------------------------------------------------
6341
+ ExpressFormTest: test_simplest_form_contains_form_tag
6342
+ -----------------------------------------------------
6343
+ ---------------------------------------------------------------
6344
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
6345
+ ---------------------------------------------------------------
6346
+ ---------------------------------------------------
6347
+ ExpressFormTest: test_simplest_form_contains_submit
6348
+ ---------------------------------------------------
6349
+ -------------------------------------------
6350
+ ExpressFormTest: test_simplest_form_renders
6351
+ -------------------------------------------
6352
+ -------------------------------------------------------------------
6353
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
6354
+ -------------------------------------------------------------------
6355
+ -----------------------------------------------------------
6356
+ ExpressFormTest: test_simplest_form_will_have_the_proper_id
6357
+ -----------------------------------------------------------
6358
+ -----------------------------------------------------------
6359
+ RadioTest: test_radio_has_correct_label_field_name_and_text
6360
+ -----------------------------------------------------------
6361
+ ------------------------------------------------------------------
6362
+ RadioTest: test_radio_options_from_collection_when_options_omitted
6363
+ ------------------------------------------------------------------
6364
+ ----------------------------------------------------------
6365
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
6366
+ ----------------------------------------------------------
6367
+ --------------------------------------------------------
6368
+ RadioTest: test_radio_options_present_with_class_'radio'
6369
+ --------------------------------------------------------
6370
+ -------------------------------------------------
6371
+ RadioTest: test_radio_requires_a_parent_component
6372
+ -------------------------------------------------
6373
+ ------------------------------------------------------------
6374
+ RadioTest: test_radio_throws_error_if_given_improper_options
6375
+ ------------------------------------------------------------
6376
+ -----------------------------------------------------------------
6377
+ BaseTest: test_.contains_places_fragment_inside_the_enclosing_tag
6378
+ -----------------------------------------------------------------
6379
+ ---------------------------------------------------------
6380
+ BaseTest: test_.has_attributes_creates_default_attributes
6381
+ ---------------------------------------------------------
6382
+ -----------------------------------------------------
6383
+ BaseTest: test_.tag_name_determines_the_enclosing_tag
6384
+ -----------------------------------------------------
6385
+ --------------------------------------------------
6386
+ BaseTest: test_before_build_hook_runs_before_build
6387
+ --------------------------------------------------
6388
+ --------------------------------------------------------------
6389
+ BaseTest: test_class_name_is_dasherized_instead_of_underscored
6390
+ --------------------------------------------------------------
6391
+ -----------------------------------------------------------
6392
+ BaseTest: test_class_option_adds_a_class,_does_not_override
6393
+ -----------------------------------------------------------
6394
+ ----------------------------------------------------
6395
+ BaseTest: test_options_are_passed_to_html_attributes
6396
+ ----------------------------------------------------
6397
+ ----------------------------------------------
6398
+ SubmitTest: test_submit_accepts_a_class_option
6399
+ ----------------------------------------------
6400
+ --------------------------------------------------------
6401
+ SubmitTest: test_submit_accepts_a_value_and_class_option
6402
+ --------------------------------------------------------
6403
+ ----------------------------------------------------
6404
+ SubmitTest: test_submit_takes_string_param_for_value
6405
+ ----------------------------------------------------
6406
+ --------------------------------------------------------------------------------------------------
6407
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
6408
+ --------------------------------------------------------------------------------------------------
6409
+ -----------------------------------------------------------------------------------------
6410
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
6411
+ -----------------------------------------------------------------------------------------
6412
+ ---------------------------------------------------------------------------------------------------
6413
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
6414
+ ---------------------------------------------------------------------------------------------------
6415
+ ------------------------------------------------------------------------------------------------
6416
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
6417
+ ------------------------------------------------------------------------------------------------
6418
+ -----------------------------------------------------------------------------
6419
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
6420
+ -----------------------------------------------------------------------------
6421
+ ------------------------------------------------------------------------------------
6422
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
6423
+ ------------------------------------------------------------------------------------
6424
+ -------------------------------------------------------------------
6425
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
6426
+ -------------------------------------------------------------------
6427
+ ---------------------------------------------------------------------
6428
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
6429
+ ---------------------------------------------------------------------
6430
+ ---------------------------------------------------------------------
6431
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
6432
+ ---------------------------------------------------------------------
6433
+ ----------------------------------------------------
6434
+ InterpolatorTest: test_nested_with_outer_text_parses
6435
+ ----------------------------------------------------
6436
+ -------------------------------------------------------
6437
+ InterpolatorTest: test_nested_without_outer_text_parses
6438
+ -------------------------------------------------------
6439
+ ---------------------------------------------------------------------
6440
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
6441
+ ---------------------------------------------------------------------
6442
+ -------------------------------------------------
6443
+ InterpolatorTest: test_simplest_expression_parses
6444
+ -------------------------------------------------
6445
+ -------------------------------------
6446
+ BasicFieldsTest: test_all_fields_work
6447
+ -------------------------------------
6448
+ ---------------------------------------------------------------------------------
6449
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
6450
+ ---------------------------------------------------------------------------------
6451
+ ---------------------------------------------------------
6452
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
6453
+ ---------------------------------------------------------
6454
+ ---------------------------------------------------------
6455
+ BasicFieldsTest: test_passing_html_options_to_fields_work
6456
+ ---------------------------------------------------------
6457
+ -----------------------------------------------------------------------------
6458
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
6459
+ -----------------------------------------------------------------------------
6460
+ ----------------------------------------------------------
6461
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
6462
+ ----------------------------------------------------------
6463
+ --------------------------------------------
6464
+ CompilerTest: test_.compile_returns_a_string
6465
+ --------------------------------------------
6466
+ -----------------------------------------
6467
+ HelloControllerTest: test_should_get_show
6468
+ -----------------------------------------
6469
+ Processing by HelloController#show as HTML
6470
+ Rendered hello/show.html.et within layouts/application (0.6ms)
6471
+ Completed 200 OK in 113ms (Views: 113.3ms)
6472
+ ------------------------------------------------
6473
+ ProcTest: test_#source_body_handles_funky_bodies
6474
+ ------------------------------------------------
6475
+ ----------------------------------------------------------
6476
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
6477
+ ----------------------------------------------------------
6478
+ ------------------------------------------------------
6479
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
6480
+ ------------------------------------------------------
6481
+ ----------------------------------------------
6482
+ ProcTest: test_#source_returns_a_proc's_source
6483
+ ----------------------------------------------
6484
+ ---------------------------------------------------------------
6485
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
6486
+ ---------------------------------------------------------------
6487
+ ------------------------------------------------------------
6488
+ ProcTest: test_#source_works_with_a_block_containing_a_block
6489
+ ------------------------------------------------------------
6490
+ --------------------------------------------
6491
+ ProcTest: test_#source_works_with_a_do_block
6492
+ --------------------------------------------
6493
+ -----------------------------------------------------
6494
+ ProcTest: test_#source_works_with_a_single_line_block
6495
+ -----------------------------------------------------
6496
+ -------------------------------------------------
6497
+ ProcTest: test_#source_works_with_a_stabby_lambda
6498
+ -------------------------------------------------
6499
+ ----------------------------------------------------------------------------------------
6500
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
6501
+ ----------------------------------------------------------------------------------------
6502
+ -----------------------------------------------------------------------------------------
6503
+ ProcTest: test_.source_body_captures_full_body_when_parens_around_parameters_not_provided
6504
+ -----------------------------------------------------------------------------------------
6505
+ ------------------------------------------------------------
6506
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
6507
+ ------------------------------------------------------------
6508
+ ---------------------------------------------------------------------------
6509
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
6510
+ ---------------------------------------------------------------------------
6511
+ -------------------------------------------------------------
6512
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
6513
+ -------------------------------------------------------------
6514
+ -------------------------------------------------------
6515
+ CheckboxTest: test_checkbox_respects_label_after:_true_
6516
+ -------------------------------------------------------
6517
+ --------------------------------------------
6518
+ CompilerTest: test_.compile_returns_a_string
6519
+ --------------------------------------------
6520
+ -----------------------------------------
6521
+ HelloControllerTest: test_should_get_show
6522
+ -----------------------------------------
6523
+ Processing by HelloController#show as HTML
6524
+ Rendered hello/show.html.et within layouts/application (0.5ms)
6525
+ Completed 200 OK in 120ms (Views: 119.8ms)
6526
+ -----------------------------------------------------------------
6527
+ BaseTest: test_.contains_places_fragment_inside_the_enclosing_tag
6528
+ -----------------------------------------------------------------
6529
+ ---------------------------------------------------------
6530
+ BaseTest: test_.has_attributes_creates_default_attributes
6531
+ ---------------------------------------------------------
6532
+ -----------------------------------------------------
6533
+ BaseTest: test_.tag_name_determines_the_enclosing_tag
6534
+ -----------------------------------------------------
6535
+ --------------------------------------------------
6536
+ BaseTest: test_before_build_hook_runs_before_build
6537
+ --------------------------------------------------
6538
+ --------------------------------------------------------------
6539
+ BaseTest: test_class_name_is_dasherized_instead_of_underscored
6540
+ --------------------------------------------------------------
6541
+ -----------------------------------------------------------
6542
+ BaseTest: test_class_option_adds_a_class,_does_not_override
6543
+ -----------------------------------------------------------
6544
+ ----------------------------------------------------
6545
+ BaseTest: test_options_are_passed_to_html_attributes
6546
+ ----------------------------------------------------
6547
+ --------------------------------------------------------------
6548
+ HandlerTest: test_helpers_returning_html_when_alone_in_a_block
6549
+ --------------------------------------------------------------
6550
+ ------------------------------------------------------------------------
6551
+ HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
6552
+ ------------------------------------------------------------------------
6553
+ ----------------------------------------------------------
6554
+ HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
6555
+ ----------------------------------------------------------
6556
+ -----------------------------
6557
+ HandlerTest: test_locals_work
6558
+ -----------------------------
6559
+ ------------------------------------------------------------
6560
+ HandlerTest: test_nesting_elements_with_ruby_block_structure
6561
+ ------------------------------------------------------------
6562
+ ----------------------------------
6563
+ HandlerTest: test_other_attributes
6564
+ ----------------------------------
6565
+ -------------------------------------------
6566
+ HandlerTest: test_our_handler_is_registered
6567
+ -------------------------------------------
6568
+ ---------------------------------------
6569
+ HandlerTest: test_string_in_block_works
6570
+ ---------------------------------------
6571
+ --------------------------------------------------------------------------------------------------
6572
+ ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
6573
+ --------------------------------------------------------------------------------------------------
6574
+ -----------------------------------------------------------------------------------------
6575
+ ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
6576
+ -----------------------------------------------------------------------------------------
6577
+ ---------------------------------------------------------------------------------------------------
6578
+ ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
6579
+ ---------------------------------------------------------------------------------------------------
6580
+ ------------------------------------------------------------------------------------------------
6581
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
6582
+ ------------------------------------------------------------------------------------------------
6583
+ -----------------------------------------------------------------------------
6584
+ ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
6585
+ -----------------------------------------------------------------------------
6586
+ -----------------------------------------------------------
6587
+ RadioTest: test_radio_has_correct_label_field_name_and_text
6588
+ -----------------------------------------------------------
6589
+ ------------------------------------------------------------------
6590
+ RadioTest: test_radio_options_from_collection_when_options_omitted
6591
+ ------------------------------------------------------------------
6592
+ ----------------------------------------------------------
6593
+ RadioTest: test_radio_options_may_be_specified_with_a_hash
6594
+ ----------------------------------------------------------
6595
+ --------------------------------------------------------
6596
+ RadioTest: test_radio_options_present_with_class_'radio'
6597
+ --------------------------------------------------------
6598
+ -------------------------------------------------
6599
+ RadioTest: test_radio_requires_a_parent_component
6600
+ -------------------------------------------------
6601
+ ------------------------------------------------------------
6602
+ RadioTest: test_radio_throws_error_if_given_improper_options
6603
+ ------------------------------------------------------------
6604
+ ------------------------------------------------------------------------------------
6605
+ InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
6606
+ ------------------------------------------------------------------------------------
6607
+ -------------------------------------------------------------------
6608
+ InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
6609
+ -------------------------------------------------------------------
6610
+ ---------------------------------------------------------------------
6611
+ InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
6612
+ ---------------------------------------------------------------------
6613
+ ---------------------------------------------------------------------
6614
+ InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
6615
+ ---------------------------------------------------------------------
6616
+ ----------------------------------------------------
6617
+ InterpolatorTest: test_nested_with_outer_text_parses
6618
+ ----------------------------------------------------
6619
+ -------------------------------------------------------
6620
+ InterpolatorTest: test_nested_without_outer_text_parses
6621
+ -------------------------------------------------------
6622
+ ---------------------------------------------------------------------
6623
+ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
6624
+ ---------------------------------------------------------------------
6625
+ -------------------------------------------------
6626
+ InterpolatorTest: test_simplest_expression_parses
6627
+ -------------------------------------------------
6628
+ ------------------------------------------------------------
6629
+ TreeForTest: test_tree_for_accepts_block_with_custom_content
6630
+ ------------------------------------------------------------
6631
+ ---------------------------------------------------------------------------
6632
+ TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
6633
+ ---------------------------------------------------------------------------
6634
+ -----------------------------------------------------------------------------
6635
+ ConfigurableTest: test_.has_argument_adds_a_positional_configuration_argument
6636
+ -----------------------------------------------------------------------------
6637
+ ----------------------------------------------------------------------------------------
6638
+ ConfigurableTest: test_.has_argument_appends_supported_arguments_in_order_of_inheritence
6639
+ ----------------------------------------------------------------------------------------
6640
+ -------------------------------------------------------------------------------
6641
+ ConfigurableTest: test_.has_argument_as:_allows_overwrite_of_inherited_argument
6642
+ -------------------------------------------------------------------------------
6643
+ -----------------------------------------------------------------------------------------------------
6644
+ ConfigurableTest: test_.has_argument_makes_builder_arguments_accessible_by_name_according_to_position
6645
+ -----------------------------------------------------------------------------------------------------
6646
+ ---------------------------------------------------
6647
+ ConfigurableTest: test_default_values_are_supported
6648
+ ---------------------------------------------------
6649
+ ----------------------------------------------------------------------
6650
+ ConfigurableTest: test_default_values_for_attributes_can_be_overridden
6651
+ ----------------------------------------------------------------------
6652
+ ------------------------------------------------------------------------
6653
+ ConfigurableTest: test_does_not_pass_declared_options_as_html_attributes
6654
+ ------------------------------------------------------------------------
6655
+ -----------------------------------------------------------
6656
+ ConfigurableTest: test_has_no_id_attribute_if_not_specified
6657
+ -----------------------------------------------------------
6658
+ --------------------------------------------
6659
+ ConfigurableTest: test_options_are_inherited
6660
+ --------------------------------------------
6661
+ -------------------------------------------------------
6662
+ ConfigurableTest: test_renders_first_argument_as_dom_id
6663
+ -------------------------------------------------------
6664
+ ----------------------------------------------------
6665
+ ConfigurableTest: test_required_options_are_required
6666
+ ----------------------------------------------------
6667
+ --------------------------------------------------
6668
+ ConfigurableTest: test_supports_option_declaration
6669
+ --------------------------------------------------
6670
+ ---------------------------------------------------------------
6671
+ ConfigurableTest: test_unrecognized_options_raises_an_exception
6672
+ ---------------------------------------------------------------
6673
+ -------------------------------------
6674
+ BasicFieldsTest: test_all_fields_work
6675
+ -------------------------------------
6676
+ ---------------------------------------------------------------------------------
6677
+ BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
6678
+ ---------------------------------------------------------------------------------
6679
+ ---------------------------------------------------------
6680
+ BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
6681
+ ---------------------------------------------------------
6682
+ ---------------------------------------------------------
6683
+ BasicFieldsTest: test_passing_html_options_to_fields_work
6684
+ ---------------------------------------------------------
6685
+ -----------------------------------------------------------------------------
6686
+ BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
6687
+ -----------------------------------------------------------------------------
6688
+ ----------------------------------------------------------
6689
+ BasicFieldsTest: test_textarea_uses_rails_text_area_helper
6690
+ ----------------------------------------------------------
6691
+ ------------------------------------------------
6692
+ ProcTest: test_#source_body_handles_funky_bodies
6693
+ ------------------------------------------------
6694
+ ----------------------------------------------------------
6695
+ ProcTest: test_#source_body_raises_exception_for_arity_>_0
6696
+ ----------------------------------------------------------
6697
+ ------------------------------------------------------
6698
+ ProcTest: test_#source_body_returns_the_body_of_a_proc
6699
+ ------------------------------------------------------
6700
+ ----------------------------------------------
6701
+ ProcTest: test_#source_returns_a_proc's_source
6702
+ ----------------------------------------------
6703
+ ---------------------------------------------------------------
6704
+ ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
6705
+ ---------------------------------------------------------------
6706
+ ------------------------------------------------------------
6707
+ ProcTest: test_#source_works_with_a_block_containing_a_block
6708
+ ------------------------------------------------------------
6709
+ --------------------------------------------
6710
+ ProcTest: test_#source_works_with_a_do_block
6711
+ --------------------------------------------
6712
+ -----------------------------------------------------
6713
+ ProcTest: test_#source_works_with_a_single_line_block
6714
+ -----------------------------------------------------
6715
+ -------------------------------------------------
6716
+ ProcTest: test_#source_works_with_a_stabby_lambda
6717
+ -------------------------------------------------
6718
+ ----------------------------------------------------------------------------------------
6719
+ ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
6720
+ ----------------------------------------------------------------------------------------
6721
+ -----------------------------------------------------------------------------------------
6722
+ ProcTest: test_.source_body_captures_full_body_when_parens_around_parameters_not_provided
6723
+ -----------------------------------------------------------------------------------------
6724
+ ----------------------------------------------------------------
6725
+ SelectTest: test_select_collection_works_using_collection_select
6726
+ ----------------------------------------------------------------
6727
+ ------------------------------------------
6728
+ SelectTest: test_select_comes_with_a_label
6729
+ ------------------------------------------
6730
+ --------------------------------------------------
6731
+ SelectTest: test_select_defaults_can_be_overridden
6732
+ --------------------------------------------------
6733
+ -------------------------------------------------------
6734
+ SelectTest: test_select_defaults_to_include_blank:_true
6735
+ -------------------------------------------------------
6736
+ ------------------------------------------------------------------------------------
6737
+ SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
6738
+ ------------------------------------------------------------------------------------
6739
+ ------------------------------------------------------------------------
6740
+ SelectTest: test_select_generates_options_from_data_when_options_omitted
6741
+ ------------------------------------------------------------------------
6742
+ --------------------------------------------------------------
6743
+ SelectTest: test_select_multiple:_true_if_passed_multiple_true
6744
+ --------------------------------------------------------------
6745
+ -----------------------------------------------------------------------------------------
6746
+ SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
6747
+ -----------------------------------------------------------------------------------------
6748
+ ---------------------------------------------------
6749
+ SelectTest: test_select_requires_a_parent_component
6750
+ ---------------------------------------------------
6751
+ ---------------------------------------------------------------------------
6752
+ SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
6753
+ ---------------------------------------------------------------------------
6754
+ -------------------------------------------------------------------------
6755
+ SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
6756
+ -------------------------------------------------------------------------
6757
+ ---------------------------------------------------------------------
6758
+ ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
6759
+ ---------------------------------------------------------------------
6760
+ -------------------------------------------
6761
+ ExpressTemplatesTest: test_we_have_a_module
6762
+ -------------------------------------------
6763
+ -------------------------------------------------------------
6764
+ CheckboxTest: test_checkbox_places_the_label_before_the_input
6765
+ -------------------------------------------------------------
6766
+ -------------------------------------------------------
6767
+ CheckboxTest: test_checkbox_respects_label_after:_true_
6768
+ -------------------------------------------------------
6769
+ ---------------------------------------------------------------------------------------------
6770
+ IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
6771
+ ---------------------------------------------------------------------------------------------
6772
+ -----------------------------------------------------------------
6773
+ IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
6774
+ -----------------------------------------------------------------
6775
+ ------------------------------------------------------------------
6776
+ IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
6777
+ ------------------------------------------------------------------
6778
+ ---------------------------------------------------------------
6779
+ ExpressFormTest: test_express_form_contents_are_inside_the_form
6780
+ ---------------------------------------------------------------
6781
+ ---------------------------------------------------------
6782
+ ExpressFormTest: test_express_form_default_method_is_POST
6783
+ ---------------------------------------------------------
6784
+ -----------------------------------------------------
6785
+ ExpressFormTest: test_simplest_form_contains_form_tag
6786
+ -----------------------------------------------------
6787
+ ---------------------------------------------------------------
6788
+ ExpressFormTest: test_simplest_form_contains_rails_form_helpers
6789
+ ---------------------------------------------------------------
6790
+ ---------------------------------------------------
6791
+ ExpressFormTest: test_simplest_form_contains_submit
6792
+ ---------------------------------------------------
6793
+ -------------------------------------------
6794
+ ExpressFormTest: test_simplest_form_renders
6795
+ -------------------------------------------
6796
+ -------------------------------------------------------------------
6797
+ ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
6798
+ -------------------------------------------------------------------
6799
+ -----------------------------------------------------------
6800
+ ExpressFormTest: test_simplest_form_will_have_the_proper_id
6801
+ -----------------------------------------------------------
6802
+ ----------------------------------------------
6803
+ SubmitTest: test_submit_accepts_a_class_option
6804
+ ----------------------------------------------
6805
+ --------------------------------------------------------
6806
+ SubmitTest: test_submit_accepts_a_value_and_class_option
6807
+ --------------------------------------------------------
6808
+ ----------------------------------------------------
6809
+ SubmitTest: test_submit_takes_string_param_for_value
6810
+ ----------------------------------------------------
6811
+ ------------------------------------------------------------------------------------
6812
+ StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
6813
+ ------------------------------------------------------------------------------------
6814
+ --------------------------------------------------------------------------------
6815
+ StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
6816
+ --------------------------------------------------------------------------------
6817
+ -------------------------------------------------------
6818
+ StringTest: test_String#to_view_code_returns_the_string
6819
+ -------------------------------------------------------