Forum: Ruby on Rails remarkable activerecord association RSpec

Posted by Awlad H. (awlad_h)
on 2012-11-18 10:31
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 by tamouse mailing lists (Guest)
on 2012-11-18 18:34
(Received via mailing list)
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...
Posted by Awlad H. (awlad_h)
on 2012-11-19 04:45
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 by tamouse mailing lists (Guest)
on 2012-11-20 14:19
(Received via mailing list)
On Sun, Nov 18, 2012 at 9:45 PM, Awlad H. <lists@ruby-forum.com> 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.