Is there any way to spec that a model should acts_as_authentic which is
from the authlogic plugin
im using rspec-1
Stephen S.stone
Is there any way to spec that a model should acts_as_authentic which is
from the authlogic plugin
im using rspec-1
Stephen S.stone
Hello Stephen,
I came across same problem few days back.
Its very simple. You need not spec a model to check if the model
acts_as_authentic.
I am using RSpec with Factory_girl. So when I create factory for my
respective model, Factory does the checking for the model. Try creating
a Factory for respective model in before (:each) block.
And for cross-checking, just comment out the acts_as_authentic line from
your model file.
You should be able to see the error message onscreen when spec runs.
And when you uncomment the line, spec runs with 0 errors.
Hope this helps.
–Neha Jain
Stephen S.stone wrote in post #966709:
Is there any way to spec that a model should acts_as_authentic which is
from the authlogic plugin
im using rspec-1Stephen S.stone
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs