Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more snippets

  • Loading branch information...
commit afddcb6b9ba9ec0d3f60b2b4db387a95c41163da 1 parent 5da0d48
@rwc9u rwc9u authored
Showing with 15 additions and 1 deletion.
  1. +15 −1 rails-snippets-feature.el
View
16 rails-snippets-feature.el
@@ -265,7 +265,21 @@
("fix" "$${,rails-snippets-feature:fixture}(:$${one})$." "models(:name)")) ; functional tests
(0 "shoulda" rails-functional-test-minor-mode-abbrev-table rails-unit-test-minor-mode-abbrev-table
("cont" "context \"$${description}\" do\n$>setup do\n$>$${setup}\n$>end\n $>should \"$${should_desc}\" do\n $>$.\n$>end\n$>end" "context block with setup")
- ("should" "should \"$${description}\" do\n $>$.\n$>end" "should block")) ; shoulda tests
+ ("should" "should \"$${description}\" do\n $>$.\n$>end" "should block")
+ ("sbt" "should_belong_to :$${object}" "should_belong_to")
+ ("selir" "should_ensure_length_in_range $${attribute}, ($${range})" "should_ensure_length_in_range")
+ ("sevir" "should_ensure_value_in_range $${attribute}, ($${range})" "should_ensure_value_in_range")
+ ("sho" "should_have_one :$${object}" "should_have_one")
+ ("snstf" "should_not_set_the_flash" "should_not_set_the_flash")
+ ("snat" "should_not_assign_to :$${variable}" "should_not_assign_to")
+ ("soanvf" "should_only_allow_numeric_values_for :$${attribute}" "should_only_allow_numeric_values_for")
+ ("sraf" "should_render_a_form" "should_render_a_form")
+ ("srt" "should_render_template :$${template}" "should_render_template")
+ ("sra" "should_require_attributes $${attribute}" "should_require_attributes")
+ ("srua" "should_require_unique_attributes $${attribute}" "should_require_unique_attributes")
+ ("srw" "should_respond_with :$${response}" "should_respond_with")
+ ("sstft" "should_set_the_flash_to $${value}" "should_set_the_flash_to")
+) ; shoulda tests
(0 "assertions" rails-functional-test-minor-mode-abbrev-table rails-unit-test-minor-mode-abbrev-table
("art" "assert_redirected_to :action => '$${index}'" "assert_redirected_to")
("as" "assert $${test}" "assert(...)")
Please sign in to comment.
Something went wrong with that request. Please try again.