Main Page: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
*assignment name | *assignment name | ||
<pre> | <pre> | ||
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 | |||
</pre> | |||
*course | |||
<pre> | |||
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 | |||
</pre> | </pre> | ||
=="Topics" tab function== | =="Topics" tab function== | ||
Revision as of 02:36, 24 March 2016
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