Add rspec test for correct behavior of /u/nonexistentuser URL

This commit is contained in:
Andrej Kacian 2011-08-10 22:25:35 +02:00
parent 2f924e2e8a
commit a904b59a03

View file

@ -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