Main Page

From Expertiza_Wiki
Revision as of 02:46, 24 March 2016 by Xpan (talk | contribs) (Undo revision 101294 by Xpan (talk))
Jump to navigation Jump to search

Functional tests for assignment creation function

  • "General" tab function,
  • "Topics" tab function,
  • "Rubrics" tab function,
  • "Due dates" tab function,

"General" tab function

In this section, the functional test includes assignment name, course, submission directory, description URL, "Has team?", "Has quiz?" and "Calibrated peer-review for training".

  • assignment name
    it "can set assginment name" do
      login_as("instructor6")
      visit '/assignments/new?private=0'
      expect(page).to have_content "Assignment name"
      fill_in "Assignment name:", with: 'assignment for test'
      click_button "Create"
      expect(Assignment.where(name: "assignment for test")).to exist
    end
  • course
    it "can select course" do
      login_as("instructor6")
      visit '/assignments/new?private=0'
      select('5', :from => 'assignment_form_assignment_course_id')
      click_button "Create"
    end

"Topics" tab function

"Rubrics" tab function

"Due dates" tab function