Skip to content

Commit

Permalink
Fixed indentation for shoulda snippets; Added 'shoulds' and 'shouldes…
Browse files Browse the repository at this point in the history
…' to add several should blocks or should_eventually statements at once; Fixed other minor issues with shoulda snippets;
  • Loading branch information
rmm5t committed May 15, 2008
1 parent dd4a565 commit f2c4f8f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions rails-snippets-feature.el
Original file line number Diff line number Diff line change
Expand Up @@ -264,28 +264,30 @@
(0 "tests" rails-functional-test-minor-mode-abbrev-table rails-unit-test-minor-mode-abbrev-table
("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")
("shoulde" "should_eventually \"$${description}\" do\n $>$.\n$>end" "should_eventually block")
("cont" "context \"$${description}\" do\n$>setup do\n$>$${setup}\nend$>\n\n$>should$.\nend$>" "context block with setup")
("should" "should \"$${description}\" do\n$>$.\nend$>" "should block")
("shoulds" "should \"$${description}\" do\n$>flunk\nend$>\n\n$>shoulds$." "several should blocks")
("shoulde" "should_eventually \"$${description}\" do\n $>$.\nend$>" "should_eventually block")
("shouldes" "should_eventually \"$${description}\"\n$>shouldes$." "several should_eventually statements")
("laf" "load_all_fixtures" "load_all_fixtures")
("sat" "should_assign_to :$${variable}" "should_assign_to")
("savf" "should_allow_values_for :$${attribute}" "should_allow_values_for")
("sbt" "should_belong_to :$${object}" "should_belong_to")
("sbr" "should_be_restful do |$${resource}|\n $>$${resource}.$.\n $>end" "should_be_restful {|resource| ... }")
("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")
("sbr" "should_be_restful do |$${resource}|\n $>$${resource}.$.\nend$>" "should_be_restful {|resource| ... }")
("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")
("shabtm" "should_have_and_belong_to_many" "should_have_and_belong_to_many")
("shm" "should_have_many" "should_have_many")
("shabtm" "should_have_and_belong_to_many :$${objects}" "should_have_and_belong_to_many")
("shm" "should_have_many :$${objects}" "should_have_many")
("snstf" "should_not_set_the_flash" "should_not_set_the_flash")
("snat" "should_not_assign_to :$${variable}" "should_not_assign_to")
("snavf" "should_not_allow_values_for :$${attribute}" "should_not_allow_values_for")
("soanvf" "should_only_allow_numeric_values_for :$${attribute}" "should_only_allow_numeric_values_for")
("sraf" "should_render_a_form" "should_render_a_form")
("srdt" "should_redirect_to $${redirect}" "should_redirect_to")
("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")
("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
Expand Down

0 comments on commit f2c4f8f

Please sign in to comment.