express_admin 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/components/express_admin/nav_bar_actions.rb +7 -0
- data/app/views/shared/express_admin/_navigation_bar.html.et +1 -1
- data/lib/express_admin/standard_actions.rb +139 -8
- data/lib/express_admin/version.rb +1 -1
- data/test/controllers/standard_controller_test.rb +17 -3
- data/test/dummy/app/controllers/admin/categories_controller.rb +5 -6
- data/test/dummy/app/controllers/admin/parts_controller.rb +11 -0
- data/test/dummy/app/controllers/admin/widgets_controller.rb +5 -6
- data/test/dummy/app/models/part.rb +3 -0
- data/test/dummy/app/models/widget.rb +1 -0
- data/test/dummy/app/views/admin/parts/index.html.et +8 -0
- data/test/dummy/app/views/admin/parts/show.html.et +3 -0
- data/test/dummy/app/views/admin/widgets/index.html.et +6 -8
- data/test/dummy/app/views/admin/widgets/show.html.et +3 -0
- data/test/dummy/config/menu.yml +2 -0
- data/test/dummy/config/routes.rb +6 -1
- data/test/dummy/db/migrate/20150812073447_create_parts.rb +10 -0
- data/test/dummy/db/schema.rb +8 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/test/components/smart_form_test.rb +0 -5
- data/test/dummy/test/components/smart_table_test.rb +0 -1
- data/test/dummy/test/controllers/admin/parts_controller_test.rb +20 -0
- data/test/dummy/test/controllers/admin/widgets_controller_test.rb +20 -0
- data/test/dummy/test/fixtures/parts.yml +10 -0
- data/test/fixtures/parts.yml +10 -0
- data/test/generators_test_helper.rb +25 -6
- data/test/lib/generators/express_admin/install_generator_test.rb +47 -43
- data/vendor/gems/express_templates/Gemfile.lock +1 -1
- data/vendor/gems/express_templates/express_templates-0.9.6.gem +0 -0
- data/vendor/gems/express_templates/lib/express_templates/components/capabilities/resourceful.rb +13 -5
- data/vendor/gems/express_templates/lib/express_templates/version.rb +1 -1
- data/vendor/gems/express_templates/test/components/forms/express_form_test.rb +4 -0
- data/vendor/gems/express_templates/test/dummy/log/test.log +963 -0
- metadata +68 -2
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Admin
|
4
|
+
class WidgetsControllerTest < ActionController::TestCase
|
5
|
+
fixtures :all
|
6
|
+
|
7
|
+
test "should get show" do
|
8
|
+
get :show, category_id: categories(:toys).to_param, id: widgets(:one).to_param
|
9
|
+
assert_response :success
|
10
|
+
end
|
11
|
+
|
12
|
+
test "should display the nested index" do
|
13
|
+
response = get :index, category_id: categories(:toys).to_param
|
14
|
+
assert_response :success
|
15
|
+
assert_match /Lego/, response.body
|
16
|
+
refute_match /Hammer/, response.body
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -1,20 +1,39 @@
|
|
1
|
+
TMP_ROOT = Pathname.new(File.expand_path('tmp'))
|
2
|
+
|
1
3
|
module Rails
|
2
|
-
|
3
|
-
|
4
|
-
def root
|
5
|
-
@root ||= Pathname.new(File.expand_path('tmp'))
|
6
|
-
end
|
4
|
+
def self.tmp_root
|
5
|
+
@root ||= TMP_ROOT
|
7
6
|
end
|
8
7
|
end
|
9
8
|
|
10
9
|
module GeneratorsTestHelper
|
11
10
|
def self.included(base)
|
12
11
|
base.class_eval do
|
13
|
-
destination
|
12
|
+
destination TMP_ROOT
|
14
13
|
setup :prepare_destination
|
15
14
|
end
|
16
15
|
end
|
17
16
|
|
17
|
+
|
18
|
+
def set_rails_root
|
19
|
+
Rails.instance_eval do
|
20
|
+
alias :old_root :root
|
21
|
+
alias :root :tmp_root
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def unset_rails_root
|
26
|
+
Rails.instance_eval do
|
27
|
+
alias :root :old_root
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def within_destination_rails_root
|
32
|
+
set_rails_root
|
33
|
+
yield
|
34
|
+
unset_rails_root
|
35
|
+
end
|
36
|
+
|
18
37
|
def copy_routes
|
19
38
|
routes = File.expand_path('test/fixtures/routes.rb')
|
20
39
|
destination = File.join(destination_root, 'config')
|
@@ -8,58 +8,62 @@ class ExpressAdmin::Generators::InstallGeneratorTest < Rails::Generators::TestCa
|
|
8
8
|
setup :copy_engine
|
9
9
|
|
10
10
|
def test_install_on_invoke
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
11
|
+
within_destination_rails_root do
|
12
|
+
run_generator
|
13
|
+
|
14
|
+
assert_file 'app/views/layouts/tmp/admin.html.et' do |content|
|
15
|
+
assert_match /render\(template: 'layouts\/express_admin\/admin'\)/, content
|
16
|
+
end
|
17
|
+
|
18
|
+
assert_file 'lib/generators/tmp/install/install_generator.rb'
|
19
|
+
assert_file 'lib/generators/tmp/install/USAGE'
|
20
|
+
assert_directory 'lib/generators/tmp/install/templates'
|
21
|
+
assert_file 'test/lib/generators/tmp/install/install_generator_test.rb'
|
22
|
+
|
23
|
+
assert_file 'app/assets/javascripts/tmp/admin/application.js' do |content|
|
24
|
+
assert_match /\/\/= require_tree \./, content
|
25
|
+
end
|
26
|
+
|
27
|
+
assert_file 'app/assets/stylesheets/tmp/admin/application.css' do |content|
|
28
|
+
assert_match /\*= require express_admin/, content
|
29
|
+
end
|
30
|
+
|
31
|
+
assert_file 'config/menu.yml'
|
32
|
+
|
33
|
+
assert_file 'lib/tmp/engine.rb' do |content|
|
34
|
+
assert_match /require \'express_admin\'/, content
|
35
|
+
assert_match /Tmp::Engine.config.tmp_mount_point = \'\/\'/, content
|
36
|
+
assert_match /include ::ExpressAdmin::Menu::Loader/, content
|
37
|
+
|
38
|
+
assert_match "initializer :assets do |config|", content
|
39
|
+
assert_match "engine_assets_path = File.join(File.dirname(__FILE__), '..', '..', 'app', 'assets')", content
|
40
|
+
assert_match "all_assets = Dir.glob File.join(engine_assets_path, 'stylesheets', '**', '*.css*')", content
|
41
|
+
assert_match "all_assets += Dir.glob File.join(engine_assets_path, 'javascripts', '**', '*.js*')", content
|
42
|
+
assert_match 'all_assets.each {|path| path.gsub!("#{engine_assets_path}/stylesheets/", \'\')}', content
|
43
|
+
assert_match 'all_assets.each {|path| path.gsub!("#{engine_assets_path}/javascripts/", \'\')}', content
|
44
|
+
assert_match "Rails.application.config.assets.precompile += all_assets", content
|
45
|
+
end
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
47
49
|
def test_install_on_revoke
|
48
|
-
|
50
|
+
within_destination_rails_root do
|
51
|
+
run_generator [], behavior: :revoke
|
49
52
|
|
50
|
-
|
53
|
+
assert_no_file 'app/controllers/tmp/admin_controller.rb'
|
51
54
|
|
52
|
-
|
55
|
+
assert_no_file 'app/views/layouts/tmp/admin.html.et'
|
53
56
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
57
|
+
assert_no_file 'lib/generators/tmp/install/install_generator.rb'
|
58
|
+
assert_no_file 'lib/generators/tmp/install/USAGE'
|
59
|
+
assert_no_directory 'lib/generators/tmp/install/templates'
|
60
|
+
assert_no_file 'test/lib/generators/tmp/install/install_generator_test.rb'
|
58
61
|
|
59
|
-
|
62
|
+
assert_no_file 'app/assets/javascripts/tmp/admin/application.js'
|
60
63
|
|
61
|
-
|
64
|
+
assert_no_file 'app/assets/stylesheets/tmp/admin/application.css'
|
62
65
|
|
63
|
-
|
66
|
+
assert_no_file 'config/menu.yml'
|
67
|
+
end
|
64
68
|
end
|
65
69
|
end
|
Binary file
|
data/vendor/gems/express_templates/lib/express_templates/components/capabilities/resourceful.rb
CHANGED
@@ -132,7 +132,11 @@ module ExpressTemplates
|
|
132
132
|
config[:collection_path]
|
133
133
|
end
|
134
134
|
else
|
135
|
-
helpers.
|
135
|
+
if helpers.respond_to?(:collection_path)
|
136
|
+
helpers.collection_path
|
137
|
+
else
|
138
|
+
helpers.instance_eval collection_path_helper
|
139
|
+
end
|
136
140
|
end
|
137
141
|
end
|
138
142
|
|
@@ -178,11 +182,15 @@ module ExpressTemplates
|
|
178
182
|
config[:resource_path]
|
179
183
|
end
|
180
184
|
else
|
181
|
-
if
|
182
|
-
|
183
|
-
helpers.instance_eval("#{resource_path_helper}('#{ivar_or_resource.to_param}')")
|
185
|
+
if helpers.respond_to?(:resource_path)
|
186
|
+
helpers.resource_path
|
184
187
|
else
|
185
|
-
|
188
|
+
if ivar_or_resource.respond_to?(:to_param) &&
|
189
|
+
![true, false].include?(ivar_or_resource)
|
190
|
+
helpers.instance_eval("#{resource_path_helper}('#{ivar_or_resource.to_param}')")
|
191
|
+
else
|
192
|
+
helpers.instance_eval("#{resource_path_helper}(#{ivar_or_resource ? '@' : ''}#{resource_name})")
|
193
|
+
end
|
186
194
|
end
|
187
195
|
end
|
188
196
|
end
|
@@ -12541,3 +12541,966 @@ InterpolatorTest: test_simple_expression_with_surrounding_text_parses
|
|
12541
12541
|
-------------------------------------------------
|
12542
12542
|
InterpolatorTest: test_simplest_expression_parses
|
12543
12543
|
-------------------------------------------------
|
12544
|
+
-------------------------------------------------------------
|
12545
|
+
CheckboxTest: test_checkbox_places_the_label_before_the_input
|
12546
|
+
-------------------------------------------------------------
|
12547
|
+
-------------------------------------------------------
|
12548
|
+
CheckboxTest: test_checkbox_respects_label_after:_true_
|
12549
|
+
-------------------------------------------------------
|
12550
|
+
------------------------------------------------------------------------------------
|
12551
|
+
StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
|
12552
|
+
------------------------------------------------------------------------------------
|
12553
|
+
--------------------------------------------------------------------------------
|
12554
|
+
StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
|
12555
|
+
--------------------------------------------------------------------------------
|
12556
|
+
-------------------------------------------------------
|
12557
|
+
StringTest: test_String#to_view_code_returns_the_string
|
12558
|
+
-------------------------------------------------------
|
12559
|
+
---------------------------------------------------------------
|
12560
|
+
ExpressFormTest: test_express_form_contents_are_inside_the_form
|
12561
|
+
---------------------------------------------------------------
|
12562
|
+
---------------------------------------------------------
|
12563
|
+
ExpressFormTest: test_express_form_default_method_is_POST
|
12564
|
+
---------------------------------------------------------
|
12565
|
+
-----------------------------------------------------
|
12566
|
+
ExpressFormTest: test_simplest_form_contains_form_tag
|
12567
|
+
-----------------------------------------------------
|
12568
|
+
---------------------------------------------------------------
|
12569
|
+
ExpressFormTest: test_simplest_form_contains_rails_form_helpers
|
12570
|
+
---------------------------------------------------------------
|
12571
|
+
---------------------------------------------------
|
12572
|
+
ExpressFormTest: test_simplest_form_contains_submit
|
12573
|
+
---------------------------------------------------
|
12574
|
+
-------------------------------------------
|
12575
|
+
ExpressFormTest: test_simplest_form_renders
|
12576
|
+
-------------------------------------------
|
12577
|
+
-------------------------------------------------------------------
|
12578
|
+
ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
|
12579
|
+
-------------------------------------------------------------------
|
12580
|
+
-----------------------------------------------------------
|
12581
|
+
ExpressFormTest: test_simplest_form_will_have_the_proper_id
|
12582
|
+
-----------------------------------------------------------
|
12583
|
+
------------------------------------------------------------
|
12584
|
+
TreeForTest: test_tree_for_accepts_block_with_custom_content
|
12585
|
+
------------------------------------------------------------
|
12586
|
+
---------------------------------------------------------------------------
|
12587
|
+
TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
|
12588
|
+
---------------------------------------------------------------------------
|
12589
|
+
----------------------------------------------
|
12590
|
+
SubmitTest: test_submit_accepts_a_class_option
|
12591
|
+
----------------------------------------------
|
12592
|
+
--------------------------------------------------------
|
12593
|
+
SubmitTest: test_submit_accepts_a_value_and_class_option
|
12594
|
+
--------------------------------------------------------
|
12595
|
+
----------------------------------------------------
|
12596
|
+
SubmitTest: test_submit_takes_string_param_for_value
|
12597
|
+
----------------------------------------------------
|
12598
|
+
-----------------------------------------------------------
|
12599
|
+
RadioTest: test_radio_has_correct_label_field_name_and_text
|
12600
|
+
-----------------------------------------------------------
|
12601
|
+
------------------------------------------------------------------
|
12602
|
+
RadioTest: test_radio_options_from_collection_when_options_omitted
|
12603
|
+
------------------------------------------------------------------
|
12604
|
+
----------------------------------------------------------
|
12605
|
+
RadioTest: test_radio_options_may_be_specified_with_a_hash
|
12606
|
+
----------------------------------------------------------
|
12607
|
+
--------------------------------------------------------
|
12608
|
+
RadioTest: test_radio_options_present_with_class_'radio'
|
12609
|
+
--------------------------------------------------------
|
12610
|
+
-------------------------------------------------
|
12611
|
+
RadioTest: test_radio_requires_a_parent_component
|
12612
|
+
-------------------------------------------------
|
12613
|
+
------------------------------------------------------------
|
12614
|
+
RadioTest: test_radio_throws_error_if_given_improper_options
|
12615
|
+
------------------------------------------------------------
|
12616
|
+
-----------------------------------------------------------------------------------------
|
12617
|
+
ProcTest: test_#source_body_captures_full_body_when_parens_around_parameters_not_provided
|
12618
|
+
-----------------------------------------------------------------------------------------
|
12619
|
+
------------------------------------------------
|
12620
|
+
ProcTest: test_#source_body_handles_funky_bodies
|
12621
|
+
------------------------------------------------
|
12622
|
+
----------------------------------------------------------
|
12623
|
+
ProcTest: test_#source_body_raises_exception_for_arity_>_0
|
12624
|
+
----------------------------------------------------------
|
12625
|
+
------------------------------------------------------
|
12626
|
+
ProcTest: test_#source_body_returns_the_body_of_a_proc
|
12627
|
+
------------------------------------------------------
|
12628
|
+
----------------------------------------------
|
12629
|
+
ProcTest: test_#source_returns_a_proc's_source
|
12630
|
+
----------------------------------------------
|
12631
|
+
---------------------------------------------------------------
|
12632
|
+
ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
|
12633
|
+
---------------------------------------------------------------
|
12634
|
+
-----------------------------------------------------------------
|
12635
|
+
ProcTest: test_#source_works_when_a_proc_is_inside_a_hash_literal
|
12636
|
+
-----------------------------------------------------------------
|
12637
|
+
------------------------------------------------------------
|
12638
|
+
ProcTest: test_#source_works_with_a_block_containing_a_block
|
12639
|
+
------------------------------------------------------------
|
12640
|
+
--------------------------------------------
|
12641
|
+
ProcTest: test_#source_works_with_a_do_block
|
12642
|
+
--------------------------------------------
|
12643
|
+
-----------------------------------------------------
|
12644
|
+
ProcTest: test_#source_works_with_a_single_line_block
|
12645
|
+
-----------------------------------------------------
|
12646
|
+
-------------------------------------------------
|
12647
|
+
ProcTest: test_#source_works_with_a_stabby_lambda
|
12648
|
+
-------------------------------------------------
|
12649
|
+
----------------------------------------------------------------------------------------
|
12650
|
+
ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
|
12651
|
+
----------------------------------------------------------------------------------------
|
12652
|
+
--------------------------------------------------------------------------------------------------
|
12653
|
+
ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
|
12654
|
+
--------------------------------------------------------------------------------------------------
|
12655
|
+
-----------------------------------------------------------------------------------------
|
12656
|
+
ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
|
12657
|
+
-----------------------------------------------------------------------------------------
|
12658
|
+
---------------------------------------------------------------------------------------------------
|
12659
|
+
ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
|
12660
|
+
---------------------------------------------------------------------------------------------------
|
12661
|
+
------------------------------------------------------------------------------------------------
|
12662
|
+
ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
|
12663
|
+
------------------------------------------------------------------------------------------------
|
12664
|
+
-----------------------------------------------------------------------------
|
12665
|
+
ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
|
12666
|
+
-----------------------------------------------------------------------------
|
12667
|
+
--------------------------------------------------------------
|
12668
|
+
HandlerTest: test_helpers_returning_html_when_alone_in_a_block
|
12669
|
+
--------------------------------------------------------------
|
12670
|
+
------------------------------------------------------------------------
|
12671
|
+
HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
|
12672
|
+
------------------------------------------------------------------------
|
12673
|
+
----------------------------------------------------------
|
12674
|
+
HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
|
12675
|
+
----------------------------------------------------------
|
12676
|
+
-----------------------------
|
12677
|
+
HandlerTest: test_locals_work
|
12678
|
+
-----------------------------
|
12679
|
+
------------------------------------------------------------
|
12680
|
+
HandlerTest: test_nesting_elements_with_ruby_block_structure
|
12681
|
+
------------------------------------------------------------
|
12682
|
+
----------------------------------
|
12683
|
+
HandlerTest: test_other_attributes
|
12684
|
+
----------------------------------
|
12685
|
+
-------------------------------------------
|
12686
|
+
HandlerTest: test_our_handler_is_registered
|
12687
|
+
-------------------------------------------
|
12688
|
+
------------------------------------------------------------------
|
12689
|
+
HandlerTest: test_raises_warning_if_template_has_conditional_logic
|
12690
|
+
------------------------------------------------------------------
|
12691
|
+
---------------------------------------
|
12692
|
+
HandlerTest: test_string_in_block_works
|
12693
|
+
---------------------------------------
|
12694
|
+
---------------------------------------------------------------------------------------
|
12695
|
+
BasicFieldsTest: test_adds_error_class_if_there_are_errors_on_a_field_with_no_class_set
|
12696
|
+
---------------------------------------------------------------------------------------
|
12697
|
+
----------------------------------------------------------------------------------------------
|
12698
|
+
BasicFieldsTest: test_adds_error_class_if_there_are_errors_on_a_field_with_no_input_attributes
|
12699
|
+
----------------------------------------------------------------------------------------------
|
12700
|
+
--------------------------------------------------------------------------------------------
|
12701
|
+
BasicFieldsTest: test_adds_error_to_class_if_there_are_errors_on_a_field_with_existing_class
|
12702
|
+
--------------------------------------------------------------------------------------------
|
12703
|
+
-------------------------------------
|
12704
|
+
BasicFieldsTest: test_all_fields_work
|
12705
|
+
-------------------------------------
|
12706
|
+
---------------------------------------------------------------------------------
|
12707
|
+
BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
|
12708
|
+
---------------------------------------------------------------------------------
|
12709
|
+
---------------------------------------------------------
|
12710
|
+
BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
|
12711
|
+
---------------------------------------------------------
|
12712
|
+
---------------------------------------------------------
|
12713
|
+
BasicFieldsTest: test_passing_html_options_to_fields_work
|
12714
|
+
---------------------------------------------------------
|
12715
|
+
-----------------------------------------------------------------------------
|
12716
|
+
BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
|
12717
|
+
-----------------------------------------------------------------------------
|
12718
|
+
----------------------------------------------------------
|
12719
|
+
BasicFieldsTest: test_textarea_uses_rails_text_area_helper
|
12720
|
+
----------------------------------------------------------
|
12721
|
+
-----------------------------------------------------------------------------
|
12722
|
+
ConfigurableTest: test_.has_argument_adds_a_positional_configuration_argument
|
12723
|
+
-----------------------------------------------------------------------------
|
12724
|
+
----------------------------------------------------------------------------------------
|
12725
|
+
ConfigurableTest: test_.has_argument_appends_supported_arguments_in_order_of_inheritence
|
12726
|
+
----------------------------------------------------------------------------------------
|
12727
|
+
-------------------------------------------------------------------------------
|
12728
|
+
ConfigurableTest: test_.has_argument_as:_allows_overwrite_of_inherited_argument
|
12729
|
+
-------------------------------------------------------------------------------
|
12730
|
+
-----------------------------------------------------------------------------------------------------
|
12731
|
+
ConfigurableTest: test_.has_argument_makes_builder_arguments_accessible_by_name_according_to_position
|
12732
|
+
-----------------------------------------------------------------------------------------------------
|
12733
|
+
---------------------------------------------------
|
12734
|
+
ConfigurableTest: test_default_values_are_supported
|
12735
|
+
---------------------------------------------------
|
12736
|
+
----------------------------------------------------------------------
|
12737
|
+
ConfigurableTest: test_default_values_for_attributes_can_be_overridden
|
12738
|
+
----------------------------------------------------------------------
|
12739
|
+
------------------------------------------------------------------------
|
12740
|
+
ConfigurableTest: test_does_not_pass_declared_options_as_html_attributes
|
12741
|
+
------------------------------------------------------------------------
|
12742
|
+
-----------------------------------------------------------
|
12743
|
+
ConfigurableTest: test_has_no_id_attribute_if_not_specified
|
12744
|
+
-----------------------------------------------------------
|
12745
|
+
--------------------------------------------
|
12746
|
+
ConfigurableTest: test_options_are_inherited
|
12747
|
+
--------------------------------------------
|
12748
|
+
-------------------------------------------------------
|
12749
|
+
ConfigurableTest: test_renders_first_argument_as_dom_id
|
12750
|
+
-------------------------------------------------------
|
12751
|
+
----------------------------------------------------
|
12752
|
+
ConfigurableTest: test_required_options_are_required
|
12753
|
+
----------------------------------------------------
|
12754
|
+
--------------------------------------------------
|
12755
|
+
ConfigurableTest: test_supports_option_declaration
|
12756
|
+
--------------------------------------------------
|
12757
|
+
---------------------------------------------------------------
|
12758
|
+
ConfigurableTest: test_unrecognized_options_raises_an_exception
|
12759
|
+
---------------------------------------------------------------
|
12760
|
+
----------------------------------------------------
|
12761
|
+
ConfigurableTest: test_values_can_be_set_for_options
|
12762
|
+
----------------------------------------------------
|
12763
|
+
----------------------------------------------------------------
|
12764
|
+
SelectTest: test_select_collection_works_using_collection_select
|
12765
|
+
----------------------------------------------------------------
|
12766
|
+
------------------------------------------
|
12767
|
+
SelectTest: test_select_comes_with_a_label
|
12768
|
+
------------------------------------------
|
12769
|
+
--------------------------------------------------
|
12770
|
+
SelectTest: test_select_defaults_can_be_overridden
|
12771
|
+
--------------------------------------------------
|
12772
|
+
-------------------------------------------------------
|
12773
|
+
SelectTest: test_select_defaults_to_include_blank:_true
|
12774
|
+
-------------------------------------------------------
|
12775
|
+
------------------------------------------------------------------------------------
|
12776
|
+
SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
|
12777
|
+
------------------------------------------------------------------------------------
|
12778
|
+
------------------------------------------------------------------------
|
12779
|
+
SelectTest: test_select_generates_options_from_data_when_options_omitted
|
12780
|
+
------------------------------------------------------------------------
|
12781
|
+
--------------------------------------------------------------
|
12782
|
+
SelectTest: test_select_multiple:_true_if_passed_multiple_true
|
12783
|
+
--------------------------------------------------------------
|
12784
|
+
-----------------------------------------------------------------------------------------
|
12785
|
+
SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
|
12786
|
+
-----------------------------------------------------------------------------------------
|
12787
|
+
---------------------------------------------------
|
12788
|
+
SelectTest: test_select_requires_a_parent_component
|
12789
|
+
---------------------------------------------------
|
12790
|
+
---------------------------------------------------------------------------
|
12791
|
+
SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
|
12792
|
+
---------------------------------------------------------------------------
|
12793
|
+
-------------------------------------------------------------------------
|
12794
|
+
SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
|
12795
|
+
-------------------------------------------------------------------------
|
12796
|
+
---------------------------------------------------------------------
|
12797
|
+
ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
|
12798
|
+
---------------------------------------------------------------------
|
12799
|
+
-------------------------------------------
|
12800
|
+
ExpressTemplatesTest: test_we_have_a_module
|
12801
|
+
-------------------------------------------
|
12802
|
+
--------------------------------------------
|
12803
|
+
CompilerTest: test_.compile_returns_a_string
|
12804
|
+
--------------------------------------------
|
12805
|
+
-----------------------------------------------------------------
|
12806
|
+
BaseTest: test_.contains_places_fragment_inside_the_enclosing_tag
|
12807
|
+
-----------------------------------------------------------------
|
12808
|
+
---------------------------------------------------------
|
12809
|
+
BaseTest: test_.has_attributes_creates_default_attributes
|
12810
|
+
---------------------------------------------------------
|
12811
|
+
-----------------------------------------------------
|
12812
|
+
BaseTest: test_.tag_name_determines_the_enclosing_tag
|
12813
|
+
-----------------------------------------------------
|
12814
|
+
--------------------------------------------------
|
12815
|
+
BaseTest: test_before_build_hook_runs_before_build
|
12816
|
+
--------------------------------------------------
|
12817
|
+
--------------------------------------------------------------
|
12818
|
+
BaseTest: test_class_name_is_dasherized_instead_of_underscored
|
12819
|
+
--------------------------------------------------------------
|
12820
|
+
-----------------------------------------------------------
|
12821
|
+
BaseTest: test_class_option_adds_a_class,_does_not_override
|
12822
|
+
-----------------------------------------------------------
|
12823
|
+
----------------------------------------------------
|
12824
|
+
BaseTest: test_options_are_passed_to_html_attributes
|
12825
|
+
----------------------------------------------------
|
12826
|
+
---------------------------------------------------------------------------------------------
|
12827
|
+
IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
|
12828
|
+
---------------------------------------------------------------------------------------------
|
12829
|
+
-----------------------------------------------------------------
|
12830
|
+
IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
|
12831
|
+
-----------------------------------------------------------------
|
12832
|
+
------------------------------------------------------------------
|
12833
|
+
IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
|
12834
|
+
------------------------------------------------------------------
|
12835
|
+
------------------------------------------------------------------------------------
|
12836
|
+
InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
|
12837
|
+
------------------------------------------------------------------------------------
|
12838
|
+
-------------------------------------------------------------------
|
12839
|
+
InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
|
12840
|
+
-------------------------------------------------------------------
|
12841
|
+
---------------------------------------------------------------------
|
12842
|
+
InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
|
12843
|
+
---------------------------------------------------------------------
|
12844
|
+
---------------------------------------------------------------------
|
12845
|
+
InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
|
12846
|
+
---------------------------------------------------------------------
|
12847
|
+
----------------------------------------------------
|
12848
|
+
InterpolatorTest: test_nested_with_outer_text_parses
|
12849
|
+
----------------------------------------------------
|
12850
|
+
-------------------------------------------------------
|
12851
|
+
InterpolatorTest: test_nested_without_outer_text_parses
|
12852
|
+
-------------------------------------------------------
|
12853
|
+
---------------------------------------------------------------------
|
12854
|
+
InterpolatorTest: test_simple_expression_with_surrounding_text_parses
|
12855
|
+
---------------------------------------------------------------------
|
12856
|
+
-------------------------------------------------
|
12857
|
+
InterpolatorTest: test_simplest_expression_parses
|
12858
|
+
-------------------------------------------------
|
12859
|
+
-----------------------------------------
|
12860
|
+
HelloControllerTest: test_should_get_show
|
12861
|
+
-----------------------------------------
|
12862
|
+
Processing by HelloController#show as HTML
|
12863
|
+
Rendered hello/show.html.et within layouts/application (0.9ms)
|
12864
|
+
Completed 200 OK in 121ms (Views: 121.0ms)
|
12865
|
+
-----------------------------------------------------------------------------------------
|
12866
|
+
ProcTest: test_#source_body_captures_full_body_when_parens_around_parameters_not_provided
|
12867
|
+
-----------------------------------------------------------------------------------------
|
12868
|
+
------------------------------------------------
|
12869
|
+
ProcTest: test_#source_body_handles_funky_bodies
|
12870
|
+
------------------------------------------------
|
12871
|
+
----------------------------------------------------------
|
12872
|
+
ProcTest: test_#source_body_raises_exception_for_arity_>_0
|
12873
|
+
----------------------------------------------------------
|
12874
|
+
------------------------------------------------------
|
12875
|
+
ProcTest: test_#source_body_returns_the_body_of_a_proc
|
12876
|
+
------------------------------------------------------
|
12877
|
+
----------------------------------------------
|
12878
|
+
ProcTest: test_#source_returns_a_proc's_source
|
12879
|
+
----------------------------------------------
|
12880
|
+
---------------------------------------------------------------
|
12881
|
+
ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
|
12882
|
+
---------------------------------------------------------------
|
12883
|
+
-----------------------------------------------------------------
|
12884
|
+
ProcTest: test_#source_works_when_a_proc_is_inside_a_hash_literal
|
12885
|
+
-----------------------------------------------------------------
|
12886
|
+
------------------------------------------------------------
|
12887
|
+
ProcTest: test_#source_works_with_a_block_containing_a_block
|
12888
|
+
------------------------------------------------------------
|
12889
|
+
--------------------------------------------
|
12890
|
+
ProcTest: test_#source_works_with_a_do_block
|
12891
|
+
--------------------------------------------
|
12892
|
+
-----------------------------------------------------
|
12893
|
+
ProcTest: test_#source_works_with_a_single_line_block
|
12894
|
+
-----------------------------------------------------
|
12895
|
+
-------------------------------------------------
|
12896
|
+
ProcTest: test_#source_works_with_a_stabby_lambda
|
12897
|
+
-------------------------------------------------
|
12898
|
+
----------------------------------------------------------------------------------------
|
12899
|
+
ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
|
12900
|
+
----------------------------------------------------------------------------------------
|
12901
|
+
--------------------------------------------
|
12902
|
+
CompilerTest: test_.compile_returns_a_string
|
12903
|
+
--------------------------------------------
|
12904
|
+
----------------------------------------------------------------
|
12905
|
+
SelectTest: test_select_collection_works_using_collection_select
|
12906
|
+
----------------------------------------------------------------
|
12907
|
+
------------------------------------------
|
12908
|
+
SelectTest: test_select_comes_with_a_label
|
12909
|
+
------------------------------------------
|
12910
|
+
--------------------------------------------------
|
12911
|
+
SelectTest: test_select_defaults_can_be_overridden
|
12912
|
+
--------------------------------------------------
|
12913
|
+
-------------------------------------------------------
|
12914
|
+
SelectTest: test_select_defaults_to_include_blank:_true
|
12915
|
+
-------------------------------------------------------
|
12916
|
+
------------------------------------------------------------------------------------
|
12917
|
+
SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
|
12918
|
+
------------------------------------------------------------------------------------
|
12919
|
+
------------------------------------------------------------------------
|
12920
|
+
SelectTest: test_select_generates_options_from_data_when_options_omitted
|
12921
|
+
------------------------------------------------------------------------
|
12922
|
+
--------------------------------------------------------------
|
12923
|
+
SelectTest: test_select_multiple:_true_if_passed_multiple_true
|
12924
|
+
--------------------------------------------------------------
|
12925
|
+
-----------------------------------------------------------------------------------------
|
12926
|
+
SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
|
12927
|
+
-----------------------------------------------------------------------------------------
|
12928
|
+
---------------------------------------------------
|
12929
|
+
SelectTest: test_select_requires_a_parent_component
|
12930
|
+
---------------------------------------------------
|
12931
|
+
---------------------------------------------------------------------------
|
12932
|
+
SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
|
12933
|
+
---------------------------------------------------------------------------
|
12934
|
+
-------------------------------------------------------------------------
|
12935
|
+
SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
|
12936
|
+
-------------------------------------------------------------------------
|
12937
|
+
---------------------------------------------------------------
|
12938
|
+
ExpressFormTest: test_express_form_contents_are_inside_the_form
|
12939
|
+
---------------------------------------------------------------
|
12940
|
+
---------------------------------------------------------
|
12941
|
+
ExpressFormTest: test_express_form_default_method_is_POST
|
12942
|
+
---------------------------------------------------------
|
12943
|
+
-----------------------------------------------------
|
12944
|
+
ExpressFormTest: test_simplest_form_contains_form_tag
|
12945
|
+
-----------------------------------------------------
|
12946
|
+
---------------------------------------------------------------
|
12947
|
+
ExpressFormTest: test_simplest_form_contains_rails_form_helpers
|
12948
|
+
---------------------------------------------------------------
|
12949
|
+
---------------------------------------------------
|
12950
|
+
ExpressFormTest: test_simplest_form_contains_submit
|
12951
|
+
---------------------------------------------------
|
12952
|
+
-------------------------------------------
|
12953
|
+
ExpressFormTest: test_simplest_form_renders
|
12954
|
+
-------------------------------------------
|
12955
|
+
-------------------------------------------------------------------
|
12956
|
+
ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
|
12957
|
+
-------------------------------------------------------------------
|
12958
|
+
-----------------------------------------------------------
|
12959
|
+
ExpressFormTest: test_simplest_form_will_have_the_proper_id
|
12960
|
+
-----------------------------------------------------------
|
12961
|
+
---------------------------------------------------------------------
|
12962
|
+
ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
|
12963
|
+
---------------------------------------------------------------------
|
12964
|
+
-------------------------------------------
|
12965
|
+
ExpressTemplatesTest: test_we_have_a_module
|
12966
|
+
-------------------------------------------
|
12967
|
+
--------------------------------------------------------------
|
12968
|
+
HandlerTest: test_helpers_returning_html_when_alone_in_a_block
|
12969
|
+
--------------------------------------------------------------
|
12970
|
+
------------------------------------------------------------------------
|
12971
|
+
HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
|
12972
|
+
------------------------------------------------------------------------
|
12973
|
+
----------------------------------------------------------
|
12974
|
+
HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
|
12975
|
+
----------------------------------------------------------
|
12976
|
+
-----------------------------
|
12977
|
+
HandlerTest: test_locals_work
|
12978
|
+
-----------------------------
|
12979
|
+
------------------------------------------------------------
|
12980
|
+
HandlerTest: test_nesting_elements_with_ruby_block_structure
|
12981
|
+
------------------------------------------------------------
|
12982
|
+
----------------------------------
|
12983
|
+
HandlerTest: test_other_attributes
|
12984
|
+
----------------------------------
|
12985
|
+
-------------------------------------------
|
12986
|
+
HandlerTest: test_our_handler_is_registered
|
12987
|
+
-------------------------------------------
|
12988
|
+
------------------------------------------------------------------
|
12989
|
+
HandlerTest: test_raises_warning_if_template_has_conditional_logic
|
12990
|
+
------------------------------------------------------------------
|
12991
|
+
---------------------------------------
|
12992
|
+
HandlerTest: test_string_in_block_works
|
12993
|
+
---------------------------------------
|
12994
|
+
------------------------------------------------------------------------------------
|
12995
|
+
InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
|
12996
|
+
------------------------------------------------------------------------------------
|
12997
|
+
-------------------------------------------------------------------
|
12998
|
+
InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
|
12999
|
+
-------------------------------------------------------------------
|
13000
|
+
---------------------------------------------------------------------
|
13001
|
+
InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
|
13002
|
+
---------------------------------------------------------------------
|
13003
|
+
---------------------------------------------------------------------
|
13004
|
+
InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
|
13005
|
+
---------------------------------------------------------------------
|
13006
|
+
----------------------------------------------------
|
13007
|
+
InterpolatorTest: test_nested_with_outer_text_parses
|
13008
|
+
----------------------------------------------------
|
13009
|
+
-------------------------------------------------------
|
13010
|
+
InterpolatorTest: test_nested_without_outer_text_parses
|
13011
|
+
-------------------------------------------------------
|
13012
|
+
---------------------------------------------------------------------
|
13013
|
+
InterpolatorTest: test_simple_expression_with_surrounding_text_parses
|
13014
|
+
---------------------------------------------------------------------
|
13015
|
+
-------------------------------------------------
|
13016
|
+
InterpolatorTest: test_simplest_expression_parses
|
13017
|
+
-------------------------------------------------
|
13018
|
+
-----------------------------------------------------------------
|
13019
|
+
BaseTest: test_.contains_places_fragment_inside_the_enclosing_tag
|
13020
|
+
-----------------------------------------------------------------
|
13021
|
+
---------------------------------------------------------
|
13022
|
+
BaseTest: test_.has_attributes_creates_default_attributes
|
13023
|
+
---------------------------------------------------------
|
13024
|
+
-----------------------------------------------------
|
13025
|
+
BaseTest: test_.tag_name_determines_the_enclosing_tag
|
13026
|
+
-----------------------------------------------------
|
13027
|
+
--------------------------------------------------
|
13028
|
+
BaseTest: test_before_build_hook_runs_before_build
|
13029
|
+
--------------------------------------------------
|
13030
|
+
--------------------------------------------------------------
|
13031
|
+
BaseTest: test_class_name_is_dasherized_instead_of_underscored
|
13032
|
+
--------------------------------------------------------------
|
13033
|
+
-----------------------------------------------------------
|
13034
|
+
BaseTest: test_class_option_adds_a_class,_does_not_override
|
13035
|
+
-----------------------------------------------------------
|
13036
|
+
----------------------------------------------------
|
13037
|
+
BaseTest: test_options_are_passed_to_html_attributes
|
13038
|
+
----------------------------------------------------
|
13039
|
+
-----------------------------------------------------------
|
13040
|
+
RadioTest: test_radio_has_correct_label_field_name_and_text
|
13041
|
+
-----------------------------------------------------------
|
13042
|
+
------------------------------------------------------------------
|
13043
|
+
RadioTest: test_radio_options_from_collection_when_options_omitted
|
13044
|
+
------------------------------------------------------------------
|
13045
|
+
----------------------------------------------------------
|
13046
|
+
RadioTest: test_radio_options_may_be_specified_with_a_hash
|
13047
|
+
----------------------------------------------------------
|
13048
|
+
--------------------------------------------------------
|
13049
|
+
RadioTest: test_radio_options_present_with_class_'radio'
|
13050
|
+
--------------------------------------------------------
|
13051
|
+
-------------------------------------------------
|
13052
|
+
RadioTest: test_radio_requires_a_parent_component
|
13053
|
+
-------------------------------------------------
|
13054
|
+
------------------------------------------------------------
|
13055
|
+
RadioTest: test_radio_throws_error_if_given_improper_options
|
13056
|
+
------------------------------------------------------------
|
13057
|
+
-------------------------------------------------------------
|
13058
|
+
CheckboxTest: test_checkbox_places_the_label_before_the_input
|
13059
|
+
-------------------------------------------------------------
|
13060
|
+
-------------------------------------------------------
|
13061
|
+
CheckboxTest: test_checkbox_respects_label_after:_true_
|
13062
|
+
-------------------------------------------------------
|
13063
|
+
----------------------------------------------
|
13064
|
+
SubmitTest: test_submit_accepts_a_class_option
|
13065
|
+
----------------------------------------------
|
13066
|
+
--------------------------------------------------------
|
13067
|
+
SubmitTest: test_submit_accepts_a_value_and_class_option
|
13068
|
+
--------------------------------------------------------
|
13069
|
+
----------------------------------------------------
|
13070
|
+
SubmitTest: test_submit_takes_string_param_for_value
|
13071
|
+
----------------------------------------------------
|
13072
|
+
-----------------------------------------------------------------------------
|
13073
|
+
ConfigurableTest: test_.has_argument_adds_a_positional_configuration_argument
|
13074
|
+
-----------------------------------------------------------------------------
|
13075
|
+
----------------------------------------------------------------------------------------
|
13076
|
+
ConfigurableTest: test_.has_argument_appends_supported_arguments_in_order_of_inheritence
|
13077
|
+
----------------------------------------------------------------------------------------
|
13078
|
+
-------------------------------------------------------------------------------
|
13079
|
+
ConfigurableTest: test_.has_argument_as:_allows_overwrite_of_inherited_argument
|
13080
|
+
-------------------------------------------------------------------------------
|
13081
|
+
-----------------------------------------------------------------------------------------------------
|
13082
|
+
ConfigurableTest: test_.has_argument_makes_builder_arguments_accessible_by_name_according_to_position
|
13083
|
+
-----------------------------------------------------------------------------------------------------
|
13084
|
+
---------------------------------------------------
|
13085
|
+
ConfigurableTest: test_default_values_are_supported
|
13086
|
+
---------------------------------------------------
|
13087
|
+
----------------------------------------------------------------------
|
13088
|
+
ConfigurableTest: test_default_values_for_attributes_can_be_overridden
|
13089
|
+
----------------------------------------------------------------------
|
13090
|
+
------------------------------------------------------------------------
|
13091
|
+
ConfigurableTest: test_does_not_pass_declared_options_as_html_attributes
|
13092
|
+
------------------------------------------------------------------------
|
13093
|
+
-----------------------------------------------------------
|
13094
|
+
ConfigurableTest: test_has_no_id_attribute_if_not_specified
|
13095
|
+
-----------------------------------------------------------
|
13096
|
+
--------------------------------------------
|
13097
|
+
ConfigurableTest: test_options_are_inherited
|
13098
|
+
--------------------------------------------
|
13099
|
+
-------------------------------------------------------
|
13100
|
+
ConfigurableTest: test_renders_first_argument_as_dom_id
|
13101
|
+
-------------------------------------------------------
|
13102
|
+
----------------------------------------------------
|
13103
|
+
ConfigurableTest: test_required_options_are_required
|
13104
|
+
----------------------------------------------------
|
13105
|
+
--------------------------------------------------
|
13106
|
+
ConfigurableTest: test_supports_option_declaration
|
13107
|
+
--------------------------------------------------
|
13108
|
+
---------------------------------------------------------------
|
13109
|
+
ConfigurableTest: test_unrecognized_options_raises_an_exception
|
13110
|
+
---------------------------------------------------------------
|
13111
|
+
----------------------------------------------------
|
13112
|
+
ConfigurableTest: test_values_can_be_set_for_options
|
13113
|
+
----------------------------------------------------
|
13114
|
+
------------------------------------------------------------
|
13115
|
+
TreeForTest: test_tree_for_accepts_block_with_custom_content
|
13116
|
+
------------------------------------------------------------
|
13117
|
+
---------------------------------------------------------------------------
|
13118
|
+
TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
|
13119
|
+
---------------------------------------------------------------------------
|
13120
|
+
------------------------------------------------------------------------------------
|
13121
|
+
StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
|
13122
|
+
------------------------------------------------------------------------------------
|
13123
|
+
--------------------------------------------------------------------------------
|
13124
|
+
StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
|
13125
|
+
--------------------------------------------------------------------------------
|
13126
|
+
-------------------------------------------------------
|
13127
|
+
StringTest: test_String#to_view_code_returns_the_string
|
13128
|
+
-------------------------------------------------------
|
13129
|
+
---------------------------------------------------------------------------------------------
|
13130
|
+
IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
|
13131
|
+
---------------------------------------------------------------------------------------------
|
13132
|
+
-----------------------------------------------------------------
|
13133
|
+
IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
|
13134
|
+
-----------------------------------------------------------------
|
13135
|
+
------------------------------------------------------------------
|
13136
|
+
IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
|
13137
|
+
------------------------------------------------------------------
|
13138
|
+
---------------------------------------------------------------------------------------
|
13139
|
+
BasicFieldsTest: test_adds_error_class_if_there_are_errors_on_a_field_with_no_class_set
|
13140
|
+
---------------------------------------------------------------------------------------
|
13141
|
+
----------------------------------------------------------------------------------------------
|
13142
|
+
BasicFieldsTest: test_adds_error_class_if_there_are_errors_on_a_field_with_no_input_attributes
|
13143
|
+
----------------------------------------------------------------------------------------------
|
13144
|
+
--------------------------------------------------------------------------------------------
|
13145
|
+
BasicFieldsTest: test_adds_error_to_class_if_there_are_errors_on_a_field_with_existing_class
|
13146
|
+
--------------------------------------------------------------------------------------------
|
13147
|
+
-------------------------------------
|
13148
|
+
BasicFieldsTest: test_all_fields_work
|
13149
|
+
-------------------------------------
|
13150
|
+
---------------------------------------------------------------------------------
|
13151
|
+
BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
|
13152
|
+
---------------------------------------------------------------------------------
|
13153
|
+
---------------------------------------------------------
|
13154
|
+
BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
|
13155
|
+
---------------------------------------------------------
|
13156
|
+
---------------------------------------------------------
|
13157
|
+
BasicFieldsTest: test_passing_html_options_to_fields_work
|
13158
|
+
---------------------------------------------------------
|
13159
|
+
-----------------------------------------------------------------------------
|
13160
|
+
BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
|
13161
|
+
-----------------------------------------------------------------------------
|
13162
|
+
----------------------------------------------------------
|
13163
|
+
BasicFieldsTest: test_textarea_uses_rails_text_area_helper
|
13164
|
+
----------------------------------------------------------
|
13165
|
+
--------------------------------------------------------------------------------------------------
|
13166
|
+
ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
|
13167
|
+
--------------------------------------------------------------------------------------------------
|
13168
|
+
-----------------------------------------------------------------------------------------
|
13169
|
+
ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
|
13170
|
+
-----------------------------------------------------------------------------------------
|
13171
|
+
---------------------------------------------------------------------------------------------------
|
13172
|
+
ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
|
13173
|
+
---------------------------------------------------------------------------------------------------
|
13174
|
+
------------------------------------------------------------------------------------------------
|
13175
|
+
ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
|
13176
|
+
------------------------------------------------------------------------------------------------
|
13177
|
+
-----------------------------------------------------------------------------
|
13178
|
+
ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
|
13179
|
+
-----------------------------------------------------------------------------
|
13180
|
+
-----------------------------------------
|
13181
|
+
HelloControllerTest: test_should_get_show
|
13182
|
+
-----------------------------------------
|
13183
|
+
Processing by HelloController#show as HTML
|
13184
|
+
Rendered hello/show.html.et within layouts/application (1.5ms)
|
13185
|
+
Completed 200 OK in 120ms (Views: 120.2ms)
|
13186
|
+
---------------------------------------------------------------------------------------
|
13187
|
+
BasicFieldsTest: test_adds_error_class_if_there_are_errors_on_a_field_with_no_class_set
|
13188
|
+
---------------------------------------------------------------------------------------
|
13189
|
+
----------------------------------------------------------------------------------------------
|
13190
|
+
BasicFieldsTest: test_adds_error_class_if_there_are_errors_on_a_field_with_no_input_attributes
|
13191
|
+
----------------------------------------------------------------------------------------------
|
13192
|
+
--------------------------------------------------------------------------------------------
|
13193
|
+
BasicFieldsTest: test_adds_error_to_class_if_there_are_errors_on_a_field_with_existing_class
|
13194
|
+
--------------------------------------------------------------------------------------------
|
13195
|
+
-------------------------------------
|
13196
|
+
BasicFieldsTest: test_all_fields_work
|
13197
|
+
-------------------------------------
|
13198
|
+
---------------------------------------------------------------------------------
|
13199
|
+
BasicFieldsTest: test_hidden_field_passes_additional_html_options_to_rails_helper
|
13200
|
+
---------------------------------------------------------------------------------
|
13201
|
+
---------------------------------------------------------
|
13202
|
+
BasicFieldsTest: test_hidden_uses_rails_hidden_tag_helper
|
13203
|
+
---------------------------------------------------------
|
13204
|
+
---------------------------------------------------------
|
13205
|
+
BasicFieldsTest: test_passing_html_options_to_fields_work
|
13206
|
+
---------------------------------------------------------
|
13207
|
+
-----------------------------------------------------------------------------
|
13208
|
+
BasicFieldsTest: test_textarea_passes_additional_html_options_to_rails_helper
|
13209
|
+
-----------------------------------------------------------------------------
|
13210
|
+
----------------------------------------------------------
|
13211
|
+
BasicFieldsTest: test_textarea_uses_rails_text_area_helper
|
13212
|
+
----------------------------------------------------------
|
13213
|
+
-------------------------------------------------------------
|
13214
|
+
CheckboxTest: test_checkbox_places_the_label_before_the_input
|
13215
|
+
-------------------------------------------------------------
|
13216
|
+
-------------------------------------------------------
|
13217
|
+
CheckboxTest: test_checkbox_respects_label_after:_true_
|
13218
|
+
-------------------------------------------------------
|
13219
|
+
-----------------------------------------
|
13220
|
+
HelloControllerTest: test_should_get_show
|
13221
|
+
-----------------------------------------
|
13222
|
+
Processing by HelloController#show as HTML
|
13223
|
+
Rendered hello/show.html.et within layouts/application (1.0ms)
|
13224
|
+
Completed 200 OK in 119ms (Views: 119.1ms)
|
13225
|
+
---------------------------------------------------------------
|
13226
|
+
ExpressFormTest: test_express_form_contents_are_inside_the_form
|
13227
|
+
---------------------------------------------------------------
|
13228
|
+
---------------------------------------------------------
|
13229
|
+
ExpressFormTest: test_express_form_default_method_is_POST
|
13230
|
+
---------------------------------------------------------
|
13231
|
+
-----------------------------------------------------
|
13232
|
+
ExpressFormTest: test_simplest_form_contains_form_tag
|
13233
|
+
-----------------------------------------------------
|
13234
|
+
---------------------------------------------------------------
|
13235
|
+
ExpressFormTest: test_simplest_form_contains_rails_form_helpers
|
13236
|
+
---------------------------------------------------------------
|
13237
|
+
---------------------------------------------------
|
13238
|
+
ExpressFormTest: test_simplest_form_contains_submit
|
13239
|
+
---------------------------------------------------
|
13240
|
+
-------------------------------------------
|
13241
|
+
ExpressFormTest: test_simplest_form_renders
|
13242
|
+
-------------------------------------------
|
13243
|
+
-------------------------------------------------------------------
|
13244
|
+
ExpressFormTest: test_simplest_form_uses_form_action_for_the_action
|
13245
|
+
-------------------------------------------------------------------
|
13246
|
+
-----------------------------------------------------------
|
13247
|
+
ExpressFormTest: test_simplest_form_will_have_the_proper_id
|
13248
|
+
-----------------------------------------------------------
|
13249
|
+
------------------------------------------------------------------------------------
|
13250
|
+
InterpolatorTest: test_"{{some_{{thing}}_foo}}"_transforms_to_"#{some_#{thing}_foo}"
|
13251
|
+
------------------------------------------------------------------------------------
|
13252
|
+
-------------------------------------------------------------------
|
13253
|
+
InterpolatorTest: test_"{{something}}"_transforms_to_"#{something}"
|
13254
|
+
-------------------------------------------------------------------
|
13255
|
+
---------------------------------------------------------------------
|
13256
|
+
InterpolatorTest: test_'a_lot_of_{{something_"{{good}}"}}'_transforms
|
13257
|
+
---------------------------------------------------------------------
|
13258
|
+
---------------------------------------------------------------------
|
13259
|
+
InterpolatorTest: test_nested_with_multiple_nested_expressions_parses
|
13260
|
+
---------------------------------------------------------------------
|
13261
|
+
----------------------------------------------------
|
13262
|
+
InterpolatorTest: test_nested_with_outer_text_parses
|
13263
|
+
----------------------------------------------------
|
13264
|
+
-------------------------------------------------------
|
13265
|
+
InterpolatorTest: test_nested_without_outer_text_parses
|
13266
|
+
-------------------------------------------------------
|
13267
|
+
---------------------------------------------------------------------
|
13268
|
+
InterpolatorTest: test_simple_expression_with_surrounding_text_parses
|
13269
|
+
---------------------------------------------------------------------
|
13270
|
+
-------------------------------------------------
|
13271
|
+
InterpolatorTest: test_simplest_expression_parses
|
13272
|
+
-------------------------------------------------
|
13273
|
+
---------------------------------------------------------------------------------------------
|
13274
|
+
IndenterTest: test_.for(:name)_returns_current_indent_without_newline_when_block_is_not_given
|
13275
|
+
---------------------------------------------------------------------------------------------
|
13276
|
+
-----------------------------------------------------------------
|
13277
|
+
IndenterTest: test_.for(:name)_takes_a_block_receiving_whitespace
|
13278
|
+
-----------------------------------------------------------------
|
13279
|
+
------------------------------------------------------------------
|
13280
|
+
IndenterTest: test_nesting_blocks_increases_whitespace_accordingly
|
13281
|
+
------------------------------------------------------------------
|
13282
|
+
------------------------------------------------------------
|
13283
|
+
TreeForTest: test_tree_for_accepts_block_with_custom_content
|
13284
|
+
------------------------------------------------------------
|
13285
|
+
---------------------------------------------------------------------------
|
13286
|
+
TreeForTest: test_tree_for_renders_correct_markup_with_node.name_as_default
|
13287
|
+
---------------------------------------------------------------------------
|
13288
|
+
--------------------------------------------------------------------------------------------------
|
13289
|
+
ExpressTemplates::ResourcefulTest: test_#resource_class_returns_resource_class_option_if_specified
|
13290
|
+
--------------------------------------------------------------------------------------------------
|
13291
|
+
-----------------------------------------------------------------------------------------
|
13292
|
+
ExpressTemplates::ResourcefulTest: test_infers_a_namespace_and_no_prefix_within_an_engine
|
13293
|
+
-----------------------------------------------------------------------------------------
|
13294
|
+
---------------------------------------------------------------------------------------------------
|
13295
|
+
ExpressTemplates::ResourcefulTest: test_infers_namespace_and_path_prefix_within_an_engine_and_scope
|
13296
|
+
---------------------------------------------------------------------------------------------------
|
13297
|
+
------------------------------------------------------------------------------------------------
|
13298
|
+
ExpressTemplates::ResourcefulTest: test_no_namespace,_infers_prefix_within_a_scope_within_an_app
|
13299
|
+
------------------------------------------------------------------------------------------------
|
13300
|
+
-----------------------------------------------------------------------------
|
13301
|
+
ExpressTemplates::ResourcefulTest: test_no_namespace,_no_prefix_within_an_app
|
13302
|
+
-----------------------------------------------------------------------------
|
13303
|
+
-----------------------------------------------------------------------------
|
13304
|
+
ConfigurableTest: test_.has_argument_adds_a_positional_configuration_argument
|
13305
|
+
-----------------------------------------------------------------------------
|
13306
|
+
----------------------------------------------------------------------------------------
|
13307
|
+
ConfigurableTest: test_.has_argument_appends_supported_arguments_in_order_of_inheritence
|
13308
|
+
----------------------------------------------------------------------------------------
|
13309
|
+
-------------------------------------------------------------------------------
|
13310
|
+
ConfigurableTest: test_.has_argument_as:_allows_overwrite_of_inherited_argument
|
13311
|
+
-------------------------------------------------------------------------------
|
13312
|
+
-----------------------------------------------------------------------------------------------------
|
13313
|
+
ConfigurableTest: test_.has_argument_makes_builder_arguments_accessible_by_name_according_to_position
|
13314
|
+
-----------------------------------------------------------------------------------------------------
|
13315
|
+
---------------------------------------------------
|
13316
|
+
ConfigurableTest: test_default_values_are_supported
|
13317
|
+
---------------------------------------------------
|
13318
|
+
----------------------------------------------------------------------
|
13319
|
+
ConfigurableTest: test_default_values_for_attributes_can_be_overridden
|
13320
|
+
----------------------------------------------------------------------
|
13321
|
+
------------------------------------------------------------------------
|
13322
|
+
ConfigurableTest: test_does_not_pass_declared_options_as_html_attributes
|
13323
|
+
------------------------------------------------------------------------
|
13324
|
+
-----------------------------------------------------------
|
13325
|
+
ConfigurableTest: test_has_no_id_attribute_if_not_specified
|
13326
|
+
-----------------------------------------------------------
|
13327
|
+
--------------------------------------------
|
13328
|
+
ConfigurableTest: test_options_are_inherited
|
13329
|
+
--------------------------------------------
|
13330
|
+
-------------------------------------------------------
|
13331
|
+
ConfigurableTest: test_renders_first_argument_as_dom_id
|
13332
|
+
-------------------------------------------------------
|
13333
|
+
----------------------------------------------------
|
13334
|
+
ConfigurableTest: test_required_options_are_required
|
13335
|
+
----------------------------------------------------
|
13336
|
+
--------------------------------------------------
|
13337
|
+
ConfigurableTest: test_supports_option_declaration
|
13338
|
+
--------------------------------------------------
|
13339
|
+
---------------------------------------------------------------
|
13340
|
+
ConfigurableTest: test_unrecognized_options_raises_an_exception
|
13341
|
+
---------------------------------------------------------------
|
13342
|
+
----------------------------------------------------
|
13343
|
+
ConfigurableTest: test_values_can_be_set_for_options
|
13344
|
+
----------------------------------------------------
|
13345
|
+
--------------------------------------------------------------
|
13346
|
+
HandlerTest: test_helpers_returning_html_when_alone_in_a_block
|
13347
|
+
--------------------------------------------------------------
|
13348
|
+
------------------------------------------------------------------------
|
13349
|
+
HandlerTest: test_helpers_returning_html_work_in_sequence_within_a_block
|
13350
|
+
------------------------------------------------------------------------
|
13351
|
+
----------------------------------------------------------
|
13352
|
+
HandlerTest: test_html_generates_<h1>Hello</h1>_by_default
|
13353
|
+
----------------------------------------------------------
|
13354
|
+
-----------------------------
|
13355
|
+
HandlerTest: test_locals_work
|
13356
|
+
-----------------------------
|
13357
|
+
------------------------------------------------------------
|
13358
|
+
HandlerTest: test_nesting_elements_with_ruby_block_structure
|
13359
|
+
------------------------------------------------------------
|
13360
|
+
----------------------------------
|
13361
|
+
HandlerTest: test_other_attributes
|
13362
|
+
----------------------------------
|
13363
|
+
-------------------------------------------
|
13364
|
+
HandlerTest: test_our_handler_is_registered
|
13365
|
+
-------------------------------------------
|
13366
|
+
------------------------------------------------------------------
|
13367
|
+
HandlerTest: test_raises_warning_if_template_has_conditional_logic
|
13368
|
+
------------------------------------------------------------------
|
13369
|
+
---------------------------------------
|
13370
|
+
HandlerTest: test_string_in_block_works
|
13371
|
+
---------------------------------------
|
13372
|
+
--------------------------------------------
|
13373
|
+
CompilerTest: test_.compile_returns_a_string
|
13374
|
+
--------------------------------------------
|
13375
|
+
---------------------------------------------------------------------
|
13376
|
+
ExpressTemplatesTest: test_ExpressTemplates.render_renders_a_template
|
13377
|
+
---------------------------------------------------------------------
|
13378
|
+
-------------------------------------------
|
13379
|
+
ExpressTemplatesTest: test_we_have_a_module
|
13380
|
+
-------------------------------------------
|
13381
|
+
-----------------------------------------------------------------
|
13382
|
+
BaseTest: test_.contains_places_fragment_inside_the_enclosing_tag
|
13383
|
+
-----------------------------------------------------------------
|
13384
|
+
---------------------------------------------------------
|
13385
|
+
BaseTest: test_.has_attributes_creates_default_attributes
|
13386
|
+
---------------------------------------------------------
|
13387
|
+
-----------------------------------------------------
|
13388
|
+
BaseTest: test_.tag_name_determines_the_enclosing_tag
|
13389
|
+
-----------------------------------------------------
|
13390
|
+
--------------------------------------------------
|
13391
|
+
BaseTest: test_before_build_hook_runs_before_build
|
13392
|
+
--------------------------------------------------
|
13393
|
+
--------------------------------------------------------------
|
13394
|
+
BaseTest: test_class_name_is_dasherized_instead_of_underscored
|
13395
|
+
--------------------------------------------------------------
|
13396
|
+
-----------------------------------------------------------
|
13397
|
+
BaseTest: test_class_option_adds_a_class,_does_not_override
|
13398
|
+
-----------------------------------------------------------
|
13399
|
+
----------------------------------------------------
|
13400
|
+
BaseTest: test_options_are_passed_to_html_attributes
|
13401
|
+
----------------------------------------------------
|
13402
|
+
------------------------------------------------------------------------------------
|
13403
|
+
StringTest: test_String#inspect_works_normally_when_#to_view_code_hasn't_been_called
|
13404
|
+
------------------------------------------------------------------------------------
|
13405
|
+
--------------------------------------------------------------------------------
|
13406
|
+
StringTest: test_String#to_view_code_causes_subsequent_#inspect_to_remove_quotes
|
13407
|
+
--------------------------------------------------------------------------------
|
13408
|
+
-------------------------------------------------------
|
13409
|
+
StringTest: test_String#to_view_code_returns_the_string
|
13410
|
+
-------------------------------------------------------
|
13411
|
+
-----------------------------------------------------------------------------------------
|
13412
|
+
ProcTest: test_#source_body_captures_full_body_when_parens_around_parameters_not_provided
|
13413
|
+
-----------------------------------------------------------------------------------------
|
13414
|
+
------------------------------------------------
|
13415
|
+
ProcTest: test_#source_body_handles_funky_bodies
|
13416
|
+
------------------------------------------------
|
13417
|
+
----------------------------------------------------------
|
13418
|
+
ProcTest: test_#source_body_raises_exception_for_arity_>_0
|
13419
|
+
----------------------------------------------------------
|
13420
|
+
------------------------------------------------------
|
13421
|
+
ProcTest: test_#source_body_returns_the_body_of_a_proc
|
13422
|
+
------------------------------------------------------
|
13423
|
+
----------------------------------------------
|
13424
|
+
ProcTest: test_#source_returns_a_proc's_source
|
13425
|
+
----------------------------------------------
|
13426
|
+
---------------------------------------------------------------
|
13427
|
+
ProcTest: test_#source_work_with_a_stabby_lambda_spanning_lines
|
13428
|
+
---------------------------------------------------------------
|
13429
|
+
-----------------------------------------------------------------
|
13430
|
+
ProcTest: test_#source_works_when_a_proc_is_inside_a_hash_literal
|
13431
|
+
-----------------------------------------------------------------
|
13432
|
+
------------------------------------------------------------
|
13433
|
+
ProcTest: test_#source_works_with_a_block_containing_a_block
|
13434
|
+
------------------------------------------------------------
|
13435
|
+
--------------------------------------------
|
13436
|
+
ProcTest: test_#source_works_with_a_do_block
|
13437
|
+
--------------------------------------------
|
13438
|
+
-----------------------------------------------------
|
13439
|
+
ProcTest: test_#source_works_with_a_single_line_block
|
13440
|
+
-----------------------------------------------------
|
13441
|
+
-------------------------------------------------
|
13442
|
+
ProcTest: test_#source_works_with_a_stabby_lambda
|
13443
|
+
-------------------------------------------------
|
13444
|
+
----------------------------------------------------------------------------------------
|
13445
|
+
ProcTest: test_.from_source_stores_source_of_a_dynamicly_built_proc_for_later_inspection
|
13446
|
+
----------------------------------------------------------------------------------------
|
13447
|
+
----------------------------------------------------------------
|
13448
|
+
SelectTest: test_select_collection_works_using_collection_select
|
13449
|
+
----------------------------------------------------------------
|
13450
|
+
------------------------------------------
|
13451
|
+
SelectTest: test_select_comes_with_a_label
|
13452
|
+
------------------------------------------
|
13453
|
+
--------------------------------------------------
|
13454
|
+
SelectTest: test_select_defaults_can_be_overridden
|
13455
|
+
--------------------------------------------------
|
13456
|
+
-------------------------------------------------------
|
13457
|
+
SelectTest: test_select_defaults_to_include_blank:_true
|
13458
|
+
-------------------------------------------------------
|
13459
|
+
------------------------------------------------------------------------------------
|
13460
|
+
SelectTest: test_select_generates_correct_options_when_values_are_specified_as_array
|
13461
|
+
------------------------------------------------------------------------------------
|
13462
|
+
------------------------------------------------------------------------
|
13463
|
+
SelectTest: test_select_generates_options_from_data_when_options_omitted
|
13464
|
+
------------------------------------------------------------------------
|
13465
|
+
--------------------------------------------------------------
|
13466
|
+
SelectTest: test_select_multiple:_true_if_passed_multiple_true
|
13467
|
+
--------------------------------------------------------------
|
13468
|
+
-----------------------------------------------------------------------------------------
|
13469
|
+
SelectTest: test_select_multiple_gets_options_from_associated_has_many_through_collection
|
13470
|
+
-----------------------------------------------------------------------------------------
|
13471
|
+
---------------------------------------------------
|
13472
|
+
SelectTest: test_select_requires_a_parent_component
|
13473
|
+
---------------------------------------------------
|
13474
|
+
---------------------------------------------------------------------------
|
13475
|
+
SelectTest: test_select_uses_options_from_collect..._when_field_is_relation
|
13476
|
+
---------------------------------------------------------------------------
|
13477
|
+
-------------------------------------------------------------------------
|
13478
|
+
SelectTest: test_selected_option_is_omitted_selection_is_taken_from_model
|
13479
|
+
-------------------------------------------------------------------------
|
13480
|
+
-----------------------------------------------------------
|
13481
|
+
RadioTest: test_radio_has_correct_label_field_name_and_text
|
13482
|
+
-----------------------------------------------------------
|
13483
|
+
------------------------------------------------------------------
|
13484
|
+
RadioTest: test_radio_options_from_collection_when_options_omitted
|
13485
|
+
------------------------------------------------------------------
|
13486
|
+
----------------------------------------------------------
|
13487
|
+
RadioTest: test_radio_options_may_be_specified_with_a_hash
|
13488
|
+
----------------------------------------------------------
|
13489
|
+
--------------------------------------------------------
|
13490
|
+
RadioTest: test_radio_options_present_with_class_'radio'
|
13491
|
+
--------------------------------------------------------
|
13492
|
+
-------------------------------------------------
|
13493
|
+
RadioTest: test_radio_requires_a_parent_component
|
13494
|
+
-------------------------------------------------
|
13495
|
+
------------------------------------------------------------
|
13496
|
+
RadioTest: test_radio_throws_error_if_given_improper_options
|
13497
|
+
------------------------------------------------------------
|
13498
|
+
----------------------------------------------
|
13499
|
+
SubmitTest: test_submit_accepts_a_class_option
|
13500
|
+
----------------------------------------------
|
13501
|
+
--------------------------------------------------------
|
13502
|
+
SubmitTest: test_submit_accepts_a_value_and_class_option
|
13503
|
+
--------------------------------------------------------
|
13504
|
+
----------------------------------------------------
|
13505
|
+
SubmitTest: test_submit_takes_string_param_for_value
|
13506
|
+
----------------------------------------------------
|