Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor tweaks to the assignment <-> evaluation workflow
* It is now possible to easily move between assignments and their evaluations * Added an "Evaluate" button to the edit assignments view. Closes #17 * Corrected some small issues with the assignment edit page * Added an integration test for assignments (still a lot of work to do on this)
- Loading branch information
Showing
5 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require File.dirname(__FILE__) + '/../test_helper' | ||
|
||
class AssignmentTest < ActionController::IntegrationTest | ||
def setup | ||
visit root_path | ||
click_link "log in" | ||
fill_in "login", :with => "teachera" | ||
fill_in "password", :with => "teachera" | ||
click_button "Login" | ||
assert_contain "Login successful!" | ||
end | ||
|
||
test "enter a new assignment" do | ||
visit assignments_path | ||
click_link "English" | ||
click_link "add_assignment" | ||
fill_in "assignment_name", :with => "Spelling Test" | ||
fill_in "assignment_possible_points", :with => "100" | ||
fill_in "assignment_due_date", :with => Time.now.strftime("%Y-%m-%d 00:00:01") | ||
select "Test", :from => "assignment_assignment_category_id" | ||
click_button "Save" | ||
assert_contain "Assignment 'Spelling Test' was created successfully." | ||
end | ||
|
||
end |