i''m using gem Remarkable activerecord for association. i''ve installed remarkable and remarkable activerecrod both gem. i''ve added both gem in my Gemfile. i''ve added "remarkable_activerecord" as required in spec_helper.rb. describe Authentication do FactoryGirl.build(:authentication).should belong_to(:user) end it "has a valid factory" do FactoryGirl.create(:authentication).should validate_presence_of(:uid) end i got error: : undefined method `belong_to'' and undefined method `validate_presence_of'' what should be done now..?? thanks in advance -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
do you have ''shoulda-matchers'' in your Gemspec and spec_helper.rb? i''m not sure if these are automatically done with remarkable or not... On Sun, Nov 18, 2012 at 3:31 AM, Awlad H. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> i''m using gem Remarkable activerecord for association. i''ve installed > remarkable and remarkable activerecrod both gem. i''ve added both gem in > my Gemfile. i''ve added "remarkable_activerecord" as required in > spec_helper.rb. > > describe Authentication do > FactoryGirl.build(:authentication).should > belong_to(:user) > end > it "has a valid factory" do > FactoryGirl.create(:authentication).should > validate_presence_of(:uid) > end > i got error: : undefined method `belong_to'' and undefined method > `validate_presence_of'' > > what should be done now..?? thanks in advance > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
tamouse mailing lists wrote in post #1085044:> do you have ''shoulda-matchers'' in your Gemspec and spec_helper.rb? i''m > not sure if these are automatically done with remarkable or not...i am using remarkable gem: remarkable ,remarkable_activemodel,remarkable_activerecord. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
tamouse mailing lists
2012-Nov-20 13:18 UTC
Re: Re: remarkable activerecord association RSpec
On Sun, Nov 18, 2012 at 9:45 PM, Awlad H. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> tamouse mailing lists wrote in post #1085044: >> do you have ''shoulda-matchers'' in your Gemspec and spec_helper.rb? i''m >> not sure if these are automatically done with remarkable or not... > > i am using remarkable gem: remarkable > ,remarkable_activemodel,remarkable_activerecord.Which tells me nothing as I don''t know remarkable -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.