public
Fork of tomtt/emacs-rails
Description: Tomtt's version of the minor mode for editing RubyOnRails code in Emacs
Homepage: http://rubyforge.org/projects/emacs-rails/
Clone URL: git://github.com/rmm5t/emacs-rails.git
Search Repo:
Fixed indentation for shoulda snippets; Added 'shoulds' and 'shouldes' to 
add several should blocks or should_eventually statements at once;  Fixed 
other minor issues with shoulda snippets;
rmm5t (author)
Thu May 15 10:00:50 -0700 2008
commit  f2c4f8f4c0f728d7b37e2d1e2e15c9a6164428f1
tree    3523f1e9a0057f692be5fe574dbf8a3b3dcca82d
parent  dd4a565085b992c6da4de442e7b9f471afc4e7d7
...
264
265
266
267
268
269
 
 
 
 
 
270
271
272
273
274
275
276
 
 
 
277
278
279
 
 
280
281
282
...
284
285
286
287
288
 
 
289
290
291
...
264
265
266
 
 
 
267
268
269
270
271
272
273
274
275
 
 
 
276
277
278
279
 
 
280
281
282
283
284
...
286
287
288
 
 
289
290
291
292
293
0
@@ -264,19 +264,21 @@
0
     (0 "tests" rails-functional-test-minor-mode-abbrev-table rails-unit-test-minor-mode-abbrev-table
0
        ("fix" "$${,rails-snippets-feature:fixture}(:$${one})$." "models(:name)")) ; functional tests
0
     (0 "shoulda" rails-functional-test-minor-mode-abbrev-table rails-unit-test-minor-mode-abbrev-table
0
- ("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")
0
- ("should" "should \"$${description}\" do\n $>$.\n$>end" "should block")
0
- ("shoulde" "should_eventually \"$${description}\" do\n $>$.\n$>end" "should_eventually block")
0
+ ("cont" "context \"$${description}\" do\n$>setup do\n$>$${setup}\nend$>\n\n$>should$.\nend$>" "context block with setup")
0
+ ("should" "should \"$${description}\" do\n$>$.\nend$>" "should block")
0
+ ("shoulds" "should \"$${description}\" do\n$>flunk\nend$>\n\n$>shoulds$." "several should blocks")
0
+ ("shoulde" "should_eventually \"$${description}\" do\n $>$.\nend$>" "should_eventually block")
0
+ ("shouldes" "should_eventually \"$${description}\"\n$>shouldes$." "several should_eventually statements")
0
        ("laf" "load_all_fixtures" "load_all_fixtures")
0
        ("sat" "should_assign_to :$${variable}" "should_assign_to")
0
        ("savf" "should_allow_values_for :$${attribute}" "should_allow_values_for")
0
        ("sbt" "should_belong_to :$${object}" "should_belong_to")
0
- ("sbr" "should_be_restful do |$${resource}|\n $>$${resource}.$.\n $>end" "should_be_restful {|resource| ... }")
0
- ("selir" "should_ensure_length_in_range $${attribute}, ($${range})" "should_ensure_length_in_range")
0
- ("sevir" "should_ensure_value_in_range $${attribute}, ($${range})" "should_ensure_value_in_range")
0
+ ("sbr" "should_be_restful do |$${resource}|\n $>$${resource}.$.\nend$>" "should_be_restful {|resource| ... }")
0
+ ("selir" "should_ensure_length_in_range :$${attribute}, ($${range})" "should_ensure_length_in_range")
0
+ ("sevir" "should_ensure_value_in_range :$${attribute}, ($${range})" "should_ensure_value_in_range")
0
        ("sho" "should_have_one :$${object}" "should_have_one")
0
- ("shabtm" "should_have_and_belong_to_many" "should_have_and_belong_to_many")
0
- ("shm" "should_have_many" "should_have_many")
0
+ ("shabtm" "should_have_and_belong_to_many :$${objects}" "should_have_and_belong_to_many")
0
+ ("shm" "should_have_many :$${objects}" "should_have_many")
0
        ("snstf" "should_not_set_the_flash" "should_not_set_the_flash")
0
        ("snat" "should_not_assign_to :$${variable}" "should_not_assign_to")
0
        ("snavf" "should_not_allow_values_for :$${attribute}" "should_not_allow_values_for")
0
@@ -284,8 +286,8 @@
0
        ("sraf" "should_render_a_form" "should_render_a_form")
0
        ("srdt" "should_redirect_to $${redirect}" "should_redirect_to")
0
        ("srt" "should_render_template :$${template}" "should_render_template")
0
- ("sra" "should_require_attributes $${attribute}" "should_require_attributes")
0
- ("srua" "should_require_unique_attributes $${attribute}" "should_require_unique_attributes")
0
+ ("sra" "should_require_attributes :$${attribute}" "should_require_attributes")
0
+ ("srua" "should_require_unique_attributes :$${attribute}" "should_require_unique_attributes")
0
        ("srw" "should_respond_with :$${response}" "should_respond_with")
0
        ("sstft" "should_set_the_flash_to $${value}" "should_set_the_flash_to")) ; shoulda tests
0
     (0 "assertions" rails-functional-test-minor-mode-abbrev-table rails-unit-test-minor-mode-abbrev-table

Comments

    No one has commented yet.