[rspec-users] How do we test a Rails Model which does not have an equivalent table in the backend using RSpec

2011-11-21 Thread Mohnish J.
I have a **Moderator** model which basically queries web site related stat results from other models. An e.g. of displayed stats could be the total number of users belonging to a particular area out of many areas in a city. Limiting the number of such records to a fixed number. For this, the body

Re: [rspec-users] How do we test a Rails Model which does not have an equivalent table in the backend using RSpec

2011-11-21 Thread Sidu Ponnappa
> I'm getting a common error for all such defined methods saying that> > `database_name.table_name does not exist`. Well , this is true but how> > should is it really making a difference?, and how to get a work around> for > this to just test a simple use case of calling a method successfully> i

Re: [rspec-users] How do we test a Rails Model which does not have an equivalent table in the backend using RSpec

2011-11-21 Thread Mohnish J.
Sidu Ponnappa wrote in post #1032900: >> I'm getting a common error for all such defined methods saying that> > `database_name.table_name does not exist`. Well , this is true but how> > should is > it really making a difference?, and how to get a work around> for this > to just > test a simple use