Skip to content

Commit

Permalink
Added Factory.sequence snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosbrando committed Jul 15, 2008
1 parent 0587d0d commit 1899245
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
18 changes: 18 additions & 0 deletions Snippets/Factory_sequence.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>Factory.sequence :${1:name} do |n|
$0
end</string>
<key>name</key>
<string>Factory.sequence</string>
<key>scope</key>
<string>source.ruby.rails.shoulda</string>
<key>tabTrigger</key>
<string>facs</string>
<key>uuid</key>
<string>11B3F310-CF79-47B5-8A42-8051ECD2954C</string>
</dict>
</plist>
3 changes: 1 addition & 2 deletions Syntaxes/Shoulda.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +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_attributes|should_require_acceptance_of|shuold_set_the_flash_to|should_have_readonly_attributes|should_change|should_not_change)\b</string>
<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)\b</string>
<key>name</key>
<string>support.shoulda.macro</string>
</dict>
Expand Down
3 changes: 3 additions & 0 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
<array>
<string>AB5CDA49-1BF3-477C-82FE-2A7F1B6B9ED2</string>
<string>82E2214D-3457-42AE-A25B-DC90A270EFE4</string>
<string>------------------------------------</string>
<string>11B3F310-CF79-47B5-8A42-8051ECD2954C</string>
</array>
<key>name</key>
<string>Factory Girl</string>
Expand Down Expand Up @@ -212,6 +214,7 @@
<string>36AB5D03-388A-4E5E-A43D-046356C65A67</string>
<string>AB5CDA49-1BF3-477C-82FE-2A7F1B6B9ED2</string>
<string>82E2214D-3457-42AE-A25B-DC90A270EFE4</string>
<string>11B3F310-CF79-47B5-8A42-8051ECD2954C</string>
</array>
<key>uuid</key>
<string>8EDBE2CA-575A-42BC-9F36-BD4C99B4DE56</string>
Expand Down

0 comments on commit 1899245

Please sign in to comment.