Navigation Menu

Skip to content

Commit

Permalink
Changed the following deprecated macros for the new ones:
Browse files Browse the repository at this point in the history
should_only_allow_numeric_values_for
should_protect_attributes
should_require_acceptance_of
should_require_attributes
should_require_unique_attributes
  • Loading branch information
Miguel Herranz committed Feb 19, 2009
1 parent 8e54c34 commit 3909ea0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_protect_attributes :${1:attribute}${2:, :${3:attribute}${4:, :${5:attribute}}}</string>
<string>should_not_allow_mass_assignment_of :${1:attribute}${2:, :${3:attribute}${4:, :${5:attribute}}}</string>
<key>name</key>
<string>should_protect_attributes</string>
<string>should_not_allow_mass_assignment_of</string>
<key>scope</key>
<string>source.ruby.rails.shoulda</string>
<key>tabTrigger</key>
<string>shpa</string>
<string>shnamao</string>
<key>uuid</key>
<string>7E8F2C3E-9490-44CA-A527-A329398064BD</string>
</dict>
Expand Down
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_require_acceptance_of :${1:attribute}</string>
<string>should_validate_acceptance_of :${1:attribute}</string>
<key>name</key>
<string>should_require_acceptance_of</string>
<string>should_validate_acceptance_of</string>
<key>scope</key>
<string>source.ruby.rails.shoulda</string>
<key>tabTrigger</key>
<string>shrao</string>
<string>shvao</string>
<key>uuid</key>
<string>D6C46A2F-48F1-4D25-A763-F89D5E630809</string>
</dict>
Expand Down
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_only_allow_numeric_values_for :${1:attribute}</string>
<string>should_validate_numericality_of :${1:attribute}</string>
<key>name</key>
<string>should_only_allow_numeric_values_for</string>
<string>should_validate_numericality_of</string>
<key>scope</key>
<string>source.ruby.rails.shoulda</string>
<key>tabTrigger</key>
<string>shoanvf</string>
<string>shvno</string>
<key>uuid</key>
<string>D69EC326-DE43-4757-8375-54DDFC6894ED</string>
</dict>
Expand Down
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_require_attributes :${1:method}${2:, :${3:method}${4:, :${5:method}}}</string>
<string>should_validate_presence_of :${1:method}${2:, :${3:method}${4:, :${5:method}}}</string>
<key>name</key>
<string>should_require_attributes</string>
<string>should_validate_presence_of</string>
<key>scope</key>
<string>source.ruby.rails.shoulda</string>
<key>tabTrigger</key>
<string>shra</string>
<string>shvpo</string>
<key>uuid</key>
<string>DBD55A6E-FEF4-4E5F-9F78-30D9ECC3FDB0</string>
</dict>
Expand Down
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_require_unique_attributes :${1:method}${2:, :scoped_to =&gt; ${3:[:${4:column_id}, :${5:column_type}]}}</string>
<string>should_validate_uniqueness_of :${1:method}${2:, :scoped_to =&gt; ${3:[:${4:column_id}, :${5:column_type}]}}</string>
<key>name</key>
<string>should_require_unique_attributes with scope</string>
<string>should_validate_uniqueness_of with scope</string>
<key>scope</key>
<string>source.ruby.rails.shoulda</string>
<key>tabTrigger</key>
<string>shrua</string>
<string>shvuo</string>
<key>uuid</key>
<string>769BADDC-DA2D-4220-BF83-C0B13E2436BE</string>
</dict>
Expand Down
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_require_unique_attributes :${1:method}${2:, :${3:method}${4:, :${5:method}}}</string>
<string>should_validate_uniqueness_of :${1:method}${2:, :${3:method}${4:, :${5:method}}}</string>
<key>name</key>
<string>should_require_unique_attributes</string>
<string>should_validate_uniqueness_of</string>
<key>scope</key>
<string>source.ruby.rails.shoulda</string>
<key>tabTrigger</key>
<string>shrua</string>
<string>shvuo</string>
<key>uuid</key>
<string>B318649B-FA23-4BC3-8405-295D6E8D461C</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Syntaxes/Shoulda.tmLanguage
Expand Up @@ -121,7 +121,7 @@
<key>macros</key>
<dict>
<key>match</key>
<string>\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|should_return_from_session)\b</string>
<string>\b(should_validate_presence_of|should_validate_uniqueness_of|should_not_allow_mass_assignment_of|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_validate_numericality_of|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_validate_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|should_return_from_session)\b</string>
<key>name</key>
<string>support.shoulda.macro</string>
</dict>
Expand Down

0 comments on commit 3909ea0

Please sign in to comment.