[rspec-users] using rspec and factory_girl, how to get around attributes that can't be set b/c of attr_accessible

2011-05-16 Thread S Ahmed
class User < ActiveRecord::Base attr_accessor :password, :password_confirmation attr_accessible :password, :password_confirmation, ... validates :password, :presence => true, :confirmation => true, :length => { :within => 6..20 } end factory_girl: Factory.define :user do |u| u.user_n

Re: [rspec-users] using rspec and factory_girl, how to get around attributes that can't be set b/c of attr_accessible

2011-05-16 Thread Chris Mear
On 16 May 2011 16:29, S Ahmed wrote: > class User < ActiveRecord::Base >   attr_accessor :password, :password_confirmation >   attr_accessible  :password, :password_confirmation, ... > >   validates :password, :presence => true, :confirmation => true, :length => > { :within => 6..20 } > end > fact

[rspec-users] rspec2 - have_rjs

2011-05-16 Thread Andy Koch
Hi, Updating a rails app to Rails3/rspec2 and have a spec using "have_rjs" or "has_rjs?" - is there an rspec2 version or alternative? Have found no useful answer from usual searches. Thanks, ___ rspec-users mailing list rspec-users@rubyforge.org http:/

Re: [rspec-users] rspec2 - have_rjs

2011-05-16 Thread David Chelimsky
On May 16, 2011, at 1:04 PM, Andy Koch wrote: > Hi, > > Updating a rails app to Rails3/rspec2 and have a spec using "have_rjs" > or "has_rjs?" - is there an rspec2 version or alternative? No there isn't in rspec-rails-2, but you can use the rails assert_select_rjs: http://api.rubyonrails.org/cl