I think what would be cleanest is to use a more specific selector than `a`
On Feb 15, 2014 3:31 PM, "Eric Allen" <notifications@github.com> wrote:

> In spec/features/teacher/viewing_courses_spec.rb:
>
> > @@ -24,7 +24,7 @@
> >    end
> >
> >    def expect_courses_to_appear_in_the_following_order(course_names)
> > -    course_elements = page.all('.course')
> > +    course_elements = page.all('.course a')
>
> No. In this case, .course #text returns the period and the course ('2
> History'). If I use .course a it only returns 'History'. I could also use
> match instead of eq in the test if you think that is cleaner.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/iericallen/sparta/pull/26/files#r9774765>
> .
>