Sha256: a15a5ebc18ecb21124bf8f2fac3b4fc3fb5372d82c7beea3200c1727512dad21
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
steps_for(:signup) do When "the user creates an account with username, password and email" do post "/admin/users", :user => { :login => @username, :password => @password, :password_confirmation => @password, :email => @email } end When "a user not logged want go to /admin/signup" do reset! get "/admin/signup" end Then "user save in first" do u = User.find_by_login @username u.login.should == @username u.email.should == @email end Then "there are only one user" do User.should have(1).find(:all) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pictrails-0.5.0 | stories/steps/signup_steps.rb |