Skip to content

Snippets for Sublime Text 2 for the shoulda-matchers gem

License

Notifications You must be signed in to change notification settings

sn0cr/shoulda-sublime-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shoulda matcher snippets for Sublime text 2


Get started

cd /to/your/sublime/packages/dir
git clone https://github.com/sn0cr/shoulda-sublime-snippets.git

Snippets

Active Model

itsvp: it { should validate_presence_of(:tab) }
itsvu: it { should validate_uniqueness_of(:tab) }
itsei: it { should ensure_inclusion_of(:tab).in_array(["a", "b"])}

Active Record

itsbt: it { should belong_to(:tab)}
itshm: it { should have_many(:tabs)}

Active Controller

itsrw: it {should respond_with(:tabs)}
itsrt: it { should render_template("tabs/all")}

About

Snippets for Sublime Text 2 for the shoulda-matchers gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published