diff --git a/Snippets/should_route.tmSnippet b/Snippets/should_route.tmSnippet index 0cdcc10..b9fd126 100644 --- a/Snippets/should_route.tmSnippet +++ b/Snippets/should_route.tmSnippet @@ -3,7 +3,7 @@ content - should_route :${1:get|post|put|delete}, '${2:/posts}'${3:, :controller => :${4:posts}}${5:, :action => :${6:create}}${7:, :id => ${8:1}} + should_route :${1:get|post|put|delete}, "${2:/posts}"${3:, :controller => :${4:posts}}${5:, :action => :${6:create}}${7:, :id => ${8:1}} name should_route scope diff --git a/Syntaxes/Shoulda.tmLanguage b/Syntaxes/Shoulda.tmLanguage index a06c641..2d39ed0 100644 --- a/Syntaxes/Shoulda.tmLanguage +++ b/Syntaxes/Shoulda.tmLanguage @@ -121,7 +121,7 @@ macros match - \b(should_require_attributes|should_require_unique_attributes|should_protect_attributes|should_not_allow_values_for|should_allow_values_for|should_ensure_length_in_range|should_ensure_length_at_least|should_ensure_value_in_range|should_only_allow_numeric_values_for|should_have_many|should_have_and_belong_to_many|should_have_one|should_belong_to|should_be_restful|should_set_the_flash_to|should_not_set_the_flash|should_assign_to|should_not_assign_to|should_respond_with|should_render_template|should_redirect_to|should_render_a_form|setup|teardown|fixtures|load_all_fixtures|should_have_db_column|should_have_db_columns|should_have_index|should_have_indices|should_require_acceptance_of|shuold_set_the_flash_to|should_have_readonly_attributes|should_change|should_not_change|should_have_named_scope|should_ensure_length_is|should_filter_params|should_respond_with_content_type)\b + \b(should_require_attributes|should_require_unique_attributes|should_protect_attributes|should_not_allow_values_for|should_allow_values_for|should_ensure_length_in_range|should_ensure_length_at_least|should_ensure_value_in_range|should_only_allow_numeric_values_for|should_have_many|should_have_and_belong_to_many|should_have_one|should_belong_to|should_be_restful|should_set_the_flash_to|should_not_set_the_flash|should_assign_to|should_not_assign_to|should_respond_with|should_render_template|should_redirect_to|should_render_a_form|setup|teardown|fixtures|load_all_fixtures|should_have_db_column|should_have_db_columns|should_have_index|should_have_indices|should_require_acceptance_of|shuold_set_the_flash_to|should_have_readonly_attributes|should_change|should_not_change|should_have_named_scope|should_ensure_length_is|should_filter_params|should_respond_with_content_type|should_route)\b name support.shoulda.macro