Sha256: dce988135fabb37097a5eed6aabc8959938e841fbc997a16581352f7381b5791
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require 'spec_helper' describe "Users" do describe "signup" do describe "success" do it "should make a new user" do lambda do visit signup_path fill_in "Name", :with => "Example User" fill_in "Email", :with => "user@example.com" fill_in "Password", :with => "foobar" fill_in "Confirmation", :with => "foobar" click_button response.should render_template('users/show') end.should change(User, :count).by(1) end it "should print a welcome message" do visit signup_path fill_in "Name", :with => "Example User" fill_in "Email", :with => "user@example.com" fill_in "Password", :with => "foobar" fill_in "Confirmation", :with => "foobar" click_button response.should have_selector("div.flash.notice", :content => "Welcome! You have signed up successfully.") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tft_rails-0.5.1 | lib/generators/chapter08_09/begin/templates/spec/requests/users_signup_08_spec.rb |