After having a good practice on using Ultimate rspec matcher to test validation I think it's time to implement one for testing named scopes - custom finders. Testing these finders is daily task. Here is how it can be done with minimum amount of code and maximum readability.
Home » Posts filed under named_scope
Showing posts with label named_scope. Show all posts
Showing posts with label named_scope. Show all posts
Advanced SQL and named scopes stack with ActiveRecord
If you ever work with rails application that is a little bit more complex then a simple CRUD you would know that some of the ActiveRecord magic doesn't work for complex SQL queries. I am primary talking about named scopes stack feature.
Subscribe to:
Posts (Atom)Template Responsive Design
Label
Aneh Banget
Apresiasi
Artikel
Artis Unik
asmara
Berita Aneh
Berita unik
Blogging
Cerita Inspiratif
Christmas
Dahsyat
Dampak Media
Dewasa
Foto Unik
Free Download
Hewan Unik
Inspirational
Inspiring SMS
IT-related
Kesaksian
Kesehatan
Lucu
Misteri
motivasi
Motivational
Nama Allah
News
Olahraga Unik
orang terkenal
pengembangan diri
programming
Religi
Renungan
Resources
Second Coming
Sejarah
Selebriti
Seni
SEO
Sharing
Soal Asmara
Spiritual Reflection
Suara Hati
Tau Gak Sih
Tekno
Teknologi
Tempat Unik
Tips
Tips Unik
Tokoh
travel
Trik Kehidupan
True Love
True Story
Tumbuhan Unik
Unik
Wallpaper
Worship Video