Re: [rspec-users] making sure a model acts_as_authentic

2010-12-15 Thread Neha J.
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

Re: [rspec-users] specing a model to make sure it implements act_as_authentic

2010-12-15 Thread Neha J.
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

[rspec-users] Nested model and Factory.build

2010-12-15 Thread Adam Wilson
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

Re: [rspec-users] nested examples in html formatter

2010-12-15 Thread Jarmo Pertman
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