Your hint here is "use generic helper instead or set StateMachine::Machine.ignore_method_conflicts = true.” I’d guess you have an overlapping database vs model method.
Jon Rowe --------------------------- [email protected] jonrowe.co.uk On Monday, 6 October 2014 at 22:27, Joy Ganguly wrote: > Thanks buddy for the help. > > Now in the destroy spec i am getting some error. Please help. Here is the > details - https://gist.github.com/himadriganguly/48db55980b40c376cfcd > > Can you tell me that after running rspec why i am getting the following line > > Instance method "invalid?" is already defined in ActiveRecord::Base, use > generic helper instead or set StateMachine::Machine.ig > nore_method_conflicts = true. > > Thank you in advance. > > On Tuesday, 30 September 2014 14:21:37 UTC+5:30, Jon Rowe wrote: > > I’d say your wish list table doesn’t have a product_id column, maybe you > > haven’t applied your migrations to your test database. > > > > Jon Rowe > > --------------------------- > > [email protected] (javascript:) > > jonrowe.co.uk (http://jonrowe.co.uk) > > > > > > On Tuesday, 30 September 2014 at 17:09, Joy Ganguly wrote: > > > > > Running Create action in RSpec gives error and here is my code with error > > > details can anyone please help > > > https://gist.github.com/himadriganguly/48db55980b40c376cfcd > > > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "rspec" group. > > > To unsubscribe from this group and stop receiving emails from it, send an > > > email to [email protected] (javascript:). > > > To post to this group, send email to [email protected] (javascript:). > > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/rspec/94f8dabc-0a1c-4d11-b783-de3ef45d65e4%40googlegroups.com > > > > > > (https://groups.google.com/d/msgid/rspec/94f8dabc-0a1c-4d11-b783-de3ef45d65e4%40googlegroups.com?utm_medium=email&utm_source=footer). > > > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > (mailto:[email protected]). > To post to this group, send email to [email protected] > (mailto:[email protected]). > To view this discussion on the web visit > https://groups.google.com/d/msgid/rspec/a424b5bd-9aec-47cd-8eb4-54564bead958%40googlegroups.com > > (https://groups.google.com/d/msgid/rspec/a424b5bd-9aec-47cd-8eb4-54564bead958%40googlegroups.com?utm_medium=email&utm_source=footer). > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/0C854C2E3E10408EB6CD50FD0FDE0408%40jonrowe.co.uk. For more options, visit https://groups.google.com/d/optout.
