Sha256: c227567a11bf56d87cf8a9caf509ed6d32e42852f2800517e86d068c2049ca7f
Contents?: true
Size: 927 Bytes
Versions: 7
Compression:
Stored size: 927 Bytes
Contents
require 'spec_helper' describe "Layout links" do describe "when not signed in" do it "should have a signin link" do visit root_path response.should have_selector("a", :href => signin_path, :content => "Sign in") end end describe "when signed in" do before(:each) do @user = Factory(:user) visit signin_path fill_in :email, :with => @user.email fill_in :password, :with => @user.password click_button end it "should have a signout link" do visit root_path response.should have_selector("a", :href => signout_path, :content => "Sign out") end it "should have a profile link" do visit root_path response.should have_selector("a", :href => user_path(@user), :content => "Profile") end end end
Version data entries
7 entries across 7 versions & 2 rubygems