Add rspec test for correct behavior of /u/nonexistentuser URL
This commit is contained in:
parent
2f924e2e8a
commit
a904b59a03
1 changed files with 6 additions and 1 deletions
|
|
@ -122,11 +122,16 @@ describe PeopleController do
|
|||
response.code.should == "404"
|
||||
end
|
||||
|
||||
it "404s if no person is found" do
|
||||
it "404s if no person is found via id" do
|
||||
get :show, :id => 3920397846
|
||||
response.code.should == "404"
|
||||
end
|
||||
|
||||
it "404s if no person is found via username" do
|
||||
get :show, :username => 'delicious'
|
||||
response.code.should == "404"
|
||||
end
|
||||
|
||||
it 'does not allow xss attacks' do
|
||||
user2 = bob
|
||||
profile = user2.profile
|
||||
|
|
|
|||
Loading…
Reference in a new issue