Permalink
Browse files

Trying rspecs from rails tutorial book.

  • Loading branch information...
Rian Rainey
Rian Rainey committed Jan 12, 2013
1 parent 8645852 commit beddb4f14cab02c7d0fc580dd988e1b6ce0a86b2
Showing with 15 additions and 0 deletions.
  1. +15 −0 spec/requests/user_pages_spec.rb
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+describe "User Pages" do
+
+ subject { page }
+
+ describe "profile page" do
+ let(:user) { FactoryGirl.create(:user, :role => "Staff") }
+ before { visit user_path(user) }
+ puts :user
+
+ it { should have_selector( 'title', text: user.name ) }
+ it { should have_selector( "whodey", text: user.name ) }
+ end
+end

0 comments on commit beddb4f

Please sign in to comment.