I was looking for the best way to test named scopes in Rails using Rspec and I ran across the following answer by David Chelimsky (Rspec’s creator) in the Rspec Google Group:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
Read the entire thread for context.
I was looking for the best way to test named scopes in Rails using Rspec and I ran across the following answer by David Chelimsky (Rspec’s creator) in the Rspec Google Group:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
Read the entire thread for context.