Sha256: 37f60e77fff88773494166a5cb50774e428926db1ddc41170820b11f5ef22bbe
Contents?: true
Size: 825 Bytes
Versions: 2
Compression:
Stored size: 825 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe UsersController do render_views describe "when Anonymous" do it "should render index" do get :index assert_response :success end it "should render show" do pending get :show, :id => Factory(:user).to_param assert_response :success end end describe "when authenticated" do before do @user = Factory(:user) sign_in @user end it "should render index" do get :index assert_response :success end it "should render self page" do get :show, :id => @user.to_param assert_response :success end it "should render self page" do get :show, :id => Factory(:user).to_param assert_response :success end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
social_stream-0.2.3 | spec/controllers/users_controller_spec.rb |
social_stream-0.2.2 | spec/controllers/users_controller_spec.rb |