You haven’t added that code into the gist so I can’t see it, and as I was saying, it seems you have an external gem called state_machine that is conflicting with your application code.
Jon Rowe --------------------------- [email protected] jonrowe.co.uk On Tuesday, 7 October 2014 at 0:16, Joy Ganguly wrote: > Can you tell me that what is wrong in the destroy action code. > > Thank you > > On Monday, 6 October 2014 17:10:58 UTC+5:30, Jon Rowe wrote: > > 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] (javascript:) > > jonrowe.co.uk (http://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] > > > > 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]. > > > > > 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/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] (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/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] > (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/b4433e0f-614f-47bd-8cb6-23ba3d3527c4%40googlegroups.com > > (https://groups.google.com/d/msgid/rspec/b4433e0f-614f-47bd-8cb6-23ba3d3527c4%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/9EF627CF85184D1FB4416D544F7B0DC7%40jonrowe.co.uk. For more options, visit https://groups.google.com/d/optout.
