Skip to content

Commit 5cb12da

Browse files
Jason OngMartin Grenfell
Jason Ong
authored and
Martin Grenfell
committed
Added rest of Shoulda's activerecord helper methods. Renamed some snippet variables.
Signed-off-by: Reza Jelveh <[email protected]> Signed-off-by: Martin Grenfell <[email protected]>
1 parent 7b2c339 commit 5cb12da

File tree

12 files changed

+12
-2
lines changed

12 files changed

+12
-2
lines changed

ruby-shoulda/sbt.snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
should_belong_to :${1:field}
1+
should_belong_to :${1:association}

ruby-shoulda/selal.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_ensure_length_at_least :${1:field}, ${2:min_length}

ruby-shoulda/seli.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_ensure_length_is :${1:field}, ${2:length}

ruby-shoulda/shabtm.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_have_and_belong_to_many :${1:association}

ruby-shoulda/shcm.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_have_class_methods :${1:method}

ruby-shoulda/shdc.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_have_db_columns :${1:field}

ruby-shoulda/shi.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_have_indices :${1:field}

ruby-shoulda/shim.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_have_instance_methods :${1:method}

ruby-shoulda/shm.snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
should_have_many :${1:field}
1+
should_have_many :${1:association}

ruby-shoulda/shns.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_have_named_scope :${1:scope}, :conditions => {${2:conditions}}

ruby-shoulda/sho.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_have_one :${1:association}

ruby-shoulda/shroa.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
should_have_read_only_attributes :${1:field}

0 commit comments

Comments
 (0)