Write tests for the new URL form

This commit is contained in:
Rowan Manning
2013-11-22 09:17:44 +00:00
parent b5735b7f05
commit ae5b214834
6 changed files with 155 additions and 8 deletions

View File

@@ -3,14 +3,14 @@
Add a new URL
{{/content}}
<form role="form" class="col-md-12" action="/new" method="post">
<form role="form" class="col-md-12" action="/new" method="post" data-test="new-url-form">
<div class="legend">
<h1 class="h2 crunch-top">Add a new URL</h1>
</div>
{{#error}}
<div class="col-md-12 clearfix">
<div class="col-md-12 clearfix" data-test="error">
<div class="alert alert-danger">
<strong>Oh my gosh!</strong>
<p>{{.}}</p>