allura
リビジョン | c83181f8c0e98bfbf00b8c9bb4da7099e76611c5 (tree) |
---|---|
日時 | 2012-05-21 23:43:00 |
作者 | bolkimen <bolkimen@yaho...> |
コミッター | Dave Brondsema |
[#4206] ticket:55 change draft to published
@@ -195,7 +195,7 @@ class RootController(BaseController): | ||
195 | 195 | require_access(c.app, 'write') |
196 | 196 | now = datetime.utcnow() |
197 | 197 | post = dict( |
198 | - state='draft') | |
198 | + state='published') | |
199 | 199 | c.form = W.new_post_form |
200 | 200 | return dict(post=post) |
201 | 201 |
@@ -56,6 +56,7 @@ class TestRootController(TestController): | ||
56 | 56 | |
57 | 57 | def test_root_new_post(self): |
58 | 58 | response = self.app.get('/blog/new') |
59 | + assert '<option selected value="published">Published</option>' in response | |
59 | 60 | assert 'Enter your title here' in response |
60 | 61 | |
61 | 62 | def test_validation(self): |