Hi All, I am new to Rspec. Below is my requirement. I have 2 tables *Settings:* name value
*Users:* name email Now i am going to write a rspec to list all the users in the users table with the consumer_controller_spec.rb The problem i face here is that i have a before filter in my controller (app/controllers/consumers_controller.rb) file so that it check if the name is "abc" & then only executes the list method. Whenever I run the rspec it deletes all the records in the tables & hence i am unable to proceed the rspec testing... Hope the explanation i have explained above is clear. Kindly help me to proceed further.Thanks in advance. Regards, Natchiar.V -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
