Skip to content

Commit

Permalink
moar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caleywoods authored and Zachary Scott committed Mar 26, 2011
1 parent cb51860 commit bd5d6e4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/rstatus_test.rb
Original file line number Diff line number Diff line change
@@ -230,5 +230,17 @@ def test_username_clash

end

def test_junk_username_gives_404
visit "/users/1n2i12399992sjdsa21293jj"
assert_equal 404, page.status_code
end

def test_unsupported_feed_type_gives_404
u = Factory(:user, :username => "dfnkt")
visit "/users/#{u.username}/feed.json"

assert_equal 404, page.status_code
end

end

0 comments on commit bd5d6e4

Please sign in to comment.