This mailing list is for the development of the Rails core source
code. Perhaps post your question in the Ruby on Rails Talk group
(http://groups.google.com/group/rubyonrails-talk
) or better yet the RSpec group (http://groups.google.com/group/
rspec), as your problem requires a better understanding RSpec and the
before(:each) and before(:all) methods.
-Steve
@jangosteve
On Apr 7, 2011, at 12:35 AM, natchiar v wrote:
> 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 rubyonrails-
> core@googlegroups.com.
> To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com
> .
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
> .
--
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 rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.