Mission tests

Some test refactoring and initial tests for 'edit mission'
If you use the more specific method *have_selector('h4', title)* which
refers to the mission title ,I think it will fail. So you should use
*mission.title* here.

On Sat, Nov 8, 2014 at 2:35 PM, fonglh <notifications@github.com> wrote:

> In spec/features/mission_pages_spec.rb:
>
> >
> > +    describe "Single mission view" do
> > +      let(:mission) {FactoryGirl.create(:mission, course: course)}
> > +      before { visit course_assessment_mission_path(course, mission) }
> > +
> > +      # already opens the individual mission view
> > +      it "has factory mission" do
> > +        expect(page).to have_text(title)
>
> Probably comes from factory girl. The test passes. I can just put the
> string there though.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Coursemology/coursemology.org/pull/271/files#r20050220>
> .
>