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
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
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:/
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