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 res
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 res
I am new to RSpec and BDD, learning it while starting a new project.
I am writing model tests for a user model with a has_one association:
class User < ActiveRecord::Base
has_one :core_profile
validates_associated :core_profile, :as => :core_profileable
accepts_nested_attributes_for : core
Just FYI, it is now:
https://github.com/rspec/rspec-core/commit/edb7f851a85ffe318a5d9d161c896bde448b61e1
Jarmo Pertman
-
IT does really matter - http://www.itreallymatters.net
On Dec 14, 3:25 pm, David Chelimsky wrote:
> On Dec 13, 2010, at 10:46 PM, Jonathan Linowes wrote:
>
> > Is there