Skip to content

Commit

Permalink
Change to new shoulda
Browse files Browse the repository at this point in the history
  • Loading branch information
shaliko committed Jun 30, 2010
1 parent 3d32744 commit e506fd3
Show file tree
Hide file tree
Showing 52 changed files with 95 additions and 124 deletions.
2 changes: 1 addition & 1 deletion Snippets/Factory.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>Factory(:${1:model})</string>
<key>name</key>
<string>Factory</string>
<string>_Factory</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Factory_define.tmSnippet
Expand Up @@ -7,7 +7,7 @@
f.$0
end</string>
<key>name</key>
<string>Factory.define</string>
<string>_Factory.define</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Factory_next.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>Factory.next(:${1:sequence})</string>
<key>name</key>
<string>Factory.next</string>
<string>_Factory.next</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Factory_sequence.tmSnippet
Expand Up @@ -7,7 +7,7 @@
$0
end</string>
<key>name</key>
<string>Factory.sequence</string>
<string>_Factory.sequence</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/context delete.tmSnippet
Expand Up @@ -13,7 +13,7 @@
end}
end</string>
<key>name</key>
<string>context delete</string>
<string>_context delete</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/context get.tmSnippet
Expand Up @@ -13,7 +13,7 @@
end}
end</string>
<key>name</key>
<string>context get</string>
<string>_context get</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/context post.tmSnippet
Expand Up @@ -13,7 +13,7 @@
end}
end</string>
<key>name</key>
<string>context post</string>
<string>_context post</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/context with setup.tmSnippet
Expand Up @@ -13,7 +13,7 @@
end
end</string>
<key>name</key>
<string>context</string>
<string>_context</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/should_allow_values_for.tmSnippet
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_allow_values_for :${1:attribute}${2:, "${3:value_1}", "${4:value_2}"}$0</string>
<string>should allow_value(${1:"isbn 1 2345 6789 0"}).for(:${2:isbn})</string>
<key>name</key>
<string>should_allow_values_for</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
<string>savf</string>
<string>sav</string>
<key>uuid</key>
<string>3D6ADA00-8123-460B-B2E7-EE47CFB41145</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_assign_to.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_assign_to :${1:user}${2:, :class_name =&gt; "${3:${1/[[:alpha:]]+|(_)/(?1::\u$0)/g}}"}</string>
<key>name</key>
<string>should_assign_to</string>
<string>_should_assign_to</string>
<key>scope</key>
<string>meta.rails.functional_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_belong_to.tmSnippet
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_belong_to :${1:object}$0</string>
<string>should belong_to(:${1:parent})$0</string>
<key>name</key>
<string>should_belong_to</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_change.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_change("${1:description}"${2:, :by =&gt; ${3:1}}) { ${4:User.count} }$0</string>
<key>name</key>
<string>should_change</string>
<string>_should_change</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_create.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_create :${1:class_name}</string>
<key>name</key>
<string>should_create</string>
<string>_should_create</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_destroy.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_destroy :${1:class_name}</string>
<key>name</key>
<string>should_destroy</string>
<string>_should_destroy</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
Expand Up @@ -3,14 +3,14 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_ensure_value_in_range :${1:attribute}, (${2:0..100})$0</string>
<string>should ensure_inclusion_of(:${1:age}).in_range(${2:0..100})$0</string>
<key>name</key>
<string>should_ensure_value_in_range</string>
<string>should_ensure_inclusion_of</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
<string>sevir</string>
<string>sei</string>
<key>uuid</key>
<string>A5DE0448-0130-44F6-8BFC-6EF006384579</string>
<string>89E2F4E1-383E-4BAC-847E-2075C4BD36DD</string>
</dict>
</plist>
16 changes: 0 additions & 16 deletions Snippets/should_ensure_length_is.tmSnippet

This file was deleted.

Expand Up @@ -3,14 +3,14 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_ensure_length_at_least :${1:attribute}, ${2:3}$0</string>
<string>should ensure_length_of(:${1:password})${2:.is_at_least(${4:6})}${3:.is_at_most(${5:20})}</string>
<key>name</key>
<string>should_ensure_length_at_least</string>
<string>should_ensure_length_of</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
<string>selat</string>
<string>sel</string>
<key>uuid</key>
<string>15EED8BA-D497-48DC-B1EA-5DE7E8447559</string>
<string>D1B4CFD7-0D31-479B-A219-4583A7ECA392</string>
</dict>
</plist>
16 changes: 0 additions & 16 deletions Snippets/should_have_and_belong_to_many.tmSnippet

This file was deleted.

2 changes: 1 addition & 1 deletion Snippets/should_have_class_methods.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_have_class_methods :${1:method_name}$0</string>
<key>name</key>
<string>should_have_class_methods</string>
<string>_should_have_class_methods</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_have_db_column.tmSnippet
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_have_db_column :${1:title}${2:, :type =&gt; "${3:string}", :limit =&gt; ${4:255}}$0</string>
<string>should have_db_column(:${1:salary})${2:.of_type(:${3:decimal})}${4:.with_options(:precision =&gt; ${5:10}, :scale =&gt; ${6:2})}$0</string>
<key>name</key>
<string>should_have_db_column</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_have_db_columns.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_have_db_columns :${1:id}${2:, :${3:email}, :${4:created_at}}$0</string>
<key>name</key>
<string>should_have_db_columns</string>
<string>_should_have_db_columns</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
6 changes: 3 additions & 3 deletions Snippets/should_have_db_indeces.tmSnippet
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_have_db_indices :${1:object_id}${2:, [:${3:commentable_type}, :${4:commentable_id}]}$0</string>
<string>should have_db_index(:${1:ssn})${2:.unique(true)}$0</string>
<key>name</key>
<string>should_have_db_indices</string>
<string>should_have_db_index</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
<string>shdis</string>
<string>shdi</string>
<key>uuid</key>
<string>910CA9A5-453A-443D-A9DC-82AEDE77FA77</string>
</dict>
Expand Down
16 changes: 0 additions & 16 deletions Snippets/should_have_db_index.tmSnippet

This file was deleted.

2 changes: 1 addition & 1 deletion Snippets/should_have_instance_methods.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_have_instance_methods :${1:email}${2:, :${3:name}, :${4:name=}}$0</string>
<key>name</key>
<string>should_have_instance_methods</string>
<string>_should_have_instance_methods</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_have_many :${1:association}, :through =&gt; :${2:through_association}$0</string>
<key>name</key>
<string>should_have_many :through =&gt; :refference</string>
<string>_should_have_many :through =&gt; :refference</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_have_many :${1:object}s, :dependent =&gt; :destroy$0</string>
<key>name</key>
<string>should_have_many, :dependent =&gt; :destroy</string>
<string>_should_have_many, :dependent =&gt; :destroy</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_have_many.tmSnippet
Expand Up @@ -6,7 +6,7 @@
<string>should_have_many :${1:object}s$0
</string>
<key>name</key>
<string>should_have_many</string>
<string>_should_have_many</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_have_one.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>has_one :${1:object}${2:, :dependent =&gt; :${3:destroy}}$0</string>
<key>name</key>
<string>should_have_one</string>
<string>_should_have_one</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_have_readonly_attributes.tmSnippet
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>should_have_readonly_attributes :${1:password}$0</string>
<string>should have_readonly_attributes(:${1:password})$0</string>
<key>name</key>
<string>should_have_readonly_attributes</string>
<key>scope</key>
Expand Down
16 changes: 16 additions & 0 deletions Snippets/should_have_sent_email.tmSnippet
@@ -0,0 +1,16 @@
<?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>should have_sent_email${1:.with_subject(${2:/spam/})}${3:.from(${4:'do-not-reply@example.com'})}${5:.with_body(${6:/spam/})}${7:.to(${8:'myself@me.com'})}$0</string>
<key>name</key>
<string>should_have_sent_email</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
<string>shse</string>
<key>uuid</key>
<string>7366699F-6616-4B8A-9965-8AD55472E9C6</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Snippets/should_not_allow_mass_assignment_of.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_not_allow_mass_assignment_of :${1:attribute}$0</string>
<key>name</key>
<string>should_not_allow_mass_assignment_of</string>
<string>_should_not_allow_mass_assignment_of</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_not_allow_values_for.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_not_allow_values_for :${1:attribute}, "${2:bad 1}", "${3:bad 2}"$0</string>
<key>name</key>
<string>should_not_allow_values_for</string>
<string>_should_not_allow_values_for</string>
<key>scope</key>
<string>meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_not_assign_to.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_not_assign_to :${1:user}</string>
<key>name</key>
<string>should_not_assign_to</string>
<string>_should_not_assign_to</string>
<key>scope</key>
<string>meta.rails.functional_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_not_change.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_not_change("${1:description}") { ${2:User.count} }$0</string>
<key>name</key>
<string>should_not_change</string>
<string>_should_not_change</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_not_set_the_flash.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_not_set_the_flash</string>
<key>name</key>
<string>should_not_set_the_flash</string>
<string>_should_not_set_the_flash</string>
<key>scope</key>
<string>meta.rails.functional_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_redirect_to.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_redirect_to("${1:the user's profile}") { ${2:user_url(@user)} }$0</string>
<key>name</key>
<string>should_redirect_to</string>
<string>_should_redirect_to</string>
<key>scope</key>
<string>meta.rails.functional_test</string>
<key>tabTrigger</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/should_render_template.tmSnippet
Expand Up @@ -5,7 +5,7 @@
<key>content</key>
<string>should_render_template :${1:template_name}</string>
<key>name</key>
<string>should_render_template</string>
<string>_should_render_template</string>
<key>scope</key>
<string>meta.rails.functional_test</string>
<key>tabTrigger</key>
Expand Down

0 comments on commit e506fd3

Please sign in to comment.