Permalink
Browse files

fix selectors used in t/blogs.t

  • Loading branch information...
jberger committed Jul 13, 2014
1 parent c6a0cde commit f38aa67bb656d454b90f3aa9a2f939c276b87583
Showing with 7 additions and 7 deletions.
  1. +7 −7 t/blogs.t
View
@@ -16,26 +16,26 @@ $t->get_ok('/blogs/bad_title')->status_is(302)
# List
$t->get_ok('/blogs')->status_is(200)->element_exists('ul#blogs')
->element_exists('#blogs > .blog.snippet')
- ->text_is('li#hello_ > h2 > a' => 'Hello!');
+ ->text_is('li#hello_ h2 > a' => 'Hello!');
# One blog entry
$t->get_ok('/blogs/hello_')->status_is(200)->element_exists('ul#blogs')
->text_is('h2 > a' => 'Hello!');
# Entries by tag
$t->get_ok('/blogs/tag/personal')->status_is(200)->element_exists('ul#blogs')
- ->text_is('li#hello_ > h2 > a' => 'Hello!')
- ->text_is('li#non_tech_2 > h2 > a' => 'non-tech 2')
+ ->text_is('li#hello_ h2 > a' => 'Hello!')
+ ->text_is('li#non_tech_2 h2 > a' => 'non-tech 2')
->element_exists_not('li#tech');
# Entries by tag
$t->get_ok('/blogs/tag/tech')->status_is(200)
->element_exists_not('li#non-tech_2')
- ->text_is('li#tech > h2 > a' => 'Tech');
+ ->text_is('li#tech h2 > a' => 'Tech');
$t->get_ok('/blogs/tag/tech/tag/personal')->status_is(200)
- ->element_exists('ul#blogs')->text_is('li#hello_ > h2 > a' => 'Hello!')
- ->text_is('li#non_tech_2 > h2 > a' => 'non-tech 2')
- ->text_is('li#tech > h2 > a' => 'Tech');
+ ->element_exists('ul#blogs')->text_is('li#hello_ h2 > a' => 'Hello!')
+ ->text_is('li#non_tech_2 h2 > a' => 'non-tech 2')
+ ->text_is('li#tech h2 > a' => 'Tech');
done_testing;

0 comments on commit f38aa67

Please sign in to comment.