Skip to content

Commit

Permalink
Some ProfilesController specs
Browse files Browse the repository at this point in the history
  • Loading branch information
atd committed Mar 22, 2011
1 parent 4fbe5b6 commit 0fa4cf9
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions spec/controllers/profiles_controller_spec.rb
@@ -0,0 +1,46 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe ProfilesController do
render_views

context "for a user" do
before do
@user = Factory(:user)
end

it "should render show" do
get :show, :user_id => @user.to_param

assert_response :success
end

it "should render edit" do
pending

get :edit, :user_id => @user.to_param

assert_response :success
end
end

context "for a group" do
before do
@group = Factory(:group)
end

it "should render show" do
get :show, :group_id => @group.to_param

assert_response :success
end

it "should render edit" do
pending

get :edit, :group_id => @group.to_param

assert_response :success
end
end
end

0 comments on commit 0fa4cf9

Please sign in to comment.