fix pg rspec
This commit is contained in:
parent
6e16a748e7
commit
7d0f79c29b
1 changed files with 2 additions and 2 deletions
|
|
@ -23,14 +23,14 @@ describe HomeController do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "points to a user's profile page if a user is an admin without contacts" do
|
it "points to a user's profile page if a user is an admin without contacts" do
|
||||||
alice.contacts.delete_all
|
alice.contacts.destroy_all
|
||||||
Role.add_admin(alice.person)
|
Role.add_admin(alice.person)
|
||||||
get :show, :home => true
|
get :show, :home => true
|
||||||
response.should redirect_to(person_path(alice.person))
|
response.should redirect_to(person_path(alice.person))
|
||||||
end
|
end
|
||||||
|
|
||||||
it "points to the root_path if a user is an admin without contacts" do
|
it "points to the root_path if a user is an admin without contacts" do
|
||||||
alice.contacts.delete_all
|
alice.contacts.destroy_all
|
||||||
Role.add_beta(alice.person)
|
Role.add_beta(alice.person)
|
||||||
get :show, :home => true
|
get :show, :home => true
|
||||||
response.should redirect_to(person_path(alice.person))
|
response.should redirect_to(person_path(alice.person))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue