• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Extract tag-related behaviour into shared spec (wincent.dev, 4f817df)

Created 2/18/2008, updated 3/12/2024
  • snippets

Rather than testing the Taggable module directly, define a set of shared behaviours and test them in each model using "it_should_behave_like".

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Add sample document and cheatsheet (wikitext, a7f20b7)
Add comments about polymorphic_url problems (wincent.dev, 2e87120) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).