Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E1848. Write unit tests for assignment_team.rb #1228

Merged
merged 43 commits into from
Feb 4, 2019

Conversation

kevacken
Copy link
Contributor

We have written more unit tests for assignment_team.rb in assignment_team_spec.rb as part of program 3 for ECE 517 in the fall of 2018. @Winbobob is our mentor.

@expertiza-bot
Copy link
Contributor

expertiza-bot commented Oct 19, 2018

1 Message
💬 Thanks for the pull request, and welcome! 🎉 The Expertiza team is excited to review your changes, and you should hear from us soon.

This repository is being automatically checked for code quality issues using Code Climate.
You can see results for this analysis in the PR status below. Newly introduced issues should be fixed before a pull request is considered ready to review.

If you have any questions, please send email to expertiza-support@lists.ncsu.edu.

2 Warnings
⚠️ Your pull request has many duplicated commit messages. Please try to squash similar commits.
And using meaningful commit messages later.
⚠️ Using create in unit tests or integration tests may be overkill. Try to use build or double instead.

Generated by expertiza-bot

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 8798
..................................*.....................**********............................................................................................................................................................F

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) SignUpSheet.add_signup_topic will return a SignUpSheet when the topic already has deadlines
     # skip test on staggered deadline temporarily
     # ./spec/models/sign_up_sheet_spec.rb:36

  2) SimiCheckWebservice .get_comparison_details called with a comparison id returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:53

  3) SimiCheckWebservice .new_comparison called with a comparison_name returns a response with code 200, and body containing the name and new id for this comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:28

  4) SimiCheckWebservice .get_similarity_nxn called with a comparison id returns a response with code 200 and body containing info about the results
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:118

  5) SimiCheckWebservice .get_all_comparisons any time called returns a response with code 200 and body containing all comparisons
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:17

  6) SimiCheckWebservice .visualize_similarity called with a comparison id returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:145

  7) SimiCheckWebservice .delete_comparison called with a comparison id returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:41

  8) SimiCheckWebservice .delete_files called with a comparison id and filenames to delete returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:99

  9) SimiCheckWebservice .upload_file called with a comparison id and filepath returns a response with code 200 and body containing info about the file
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:81

  10) SimiCheckWebservice .visualize_comparison called with a comparison id and two filenames returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:171

  11) SimiCheckWebservice .update_comparison called with a new comparison name returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:68


Failures:

  1) AssignmentTeam #include? when an assignment team has one participant includes one participant
     Failure/Error:
       raise "The user account with the name #{user_name} does not exist. Please <a href='" +
         url_for(controller: 'users', action: 'new') + "'>create</a> the user first."
     
     NoMethodError:
       undefined method `url_for' for #<Assignment:0x000000129be7b0>
     # ./app/models/assignment.rb:301:in `add_participant'
     # ./spec/models/assignment_team_spec.rb:25:in `block (4 levels) in <top (required)>'

Finished in 3 minutes 3.6 seconds (files took 5.34 seconds to load)
223 examples, 1 failure, 11 pending

Failed examples:

rspec ./spec/models/assignment_team_spec.rb:23 # AssignmentTeam #include? when an assignment team has one participant includes one participant

Randomized with seed 8798

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 3519 / 14216 LOC (24.75%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5785.1
[Coveralls] https://coveralls.io/jobs/41374919
Coverage is at 24.75%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 101ea190-d3be-11e8-8287-c1a5f8036931

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 724
....................................*...........**..**....*....*.................*****....................................................................................................................................................................................................................................................**.........................********.......................********..........................................................................................................................................................................................*....................................**********....................F

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) GradesController#view_team renders grades#view_team page
     # Temporarily skipped with xdescribe
     # ./spec/controllers/grades_controller_spec.rb:95

  2) review mapping calculate reviewmapping from given review number per submission
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:102

  3) review mapping show error when assign both 2
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:83

  4) review mapping calculate review mapping from given review number per student
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:95

  5) review mapping show error when assign both 0
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:89

  6) Answer#test get total score checks if submission_valid? is called
     # Temporarily skipped with xit
     # ./spec/models/answer_spec.rb:40

  7) Answer submission valid? Checking for when valid due date objects are passed back to @sorted_deadlines
     # Temporarily skipped with xit
     # ./spec/models/answer_spec.rb:135

  8) badge system in assignments#edit page has a tab named 'Badges'
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:13

  9) badge system in assignments#edit page when switching to 'Badges' tab allows instructor to change the thresholds of two badges (by default is 95) and save thresholds to DB
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:16

  10) badge system on participants#list page allows instructor to view badges assignment statuses of all participants
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:29

  11) badge system when a student receives a very high average teammate review grade (higher than 95 by default) assigns the 'Good teammate' badge to this student on student_task#list page
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:21

  12) badge system when a student receives a very high review grades assigned by teaching staff (higher than 95 by default) assigns the 'Good reviewer' badge to this student on student_task#list page
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:25

  13) expert review when current assignment with vary-rubric-by-round supports expert peer-review expert review feature works correctly
     # Not yet implemented
     # ./spec/features/expert_review_spec.rb:28

  14) expert review when current assignment with single review round supports expert peer-review expert review feature works correctly
     # Not yet implemented
     # ./spec/features/expert_review_spec.rb:14

  15) timestamps for student's submissions when current assignment (with multiple review round) is in review stage after current participant finishes an author feedback displays a link named 'feedback' with its timestamps (you could redirect to that feedback by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:58

  16) timestamps for student's submissions when current assignment (with multiple review round) is in review stage after current participant reviews other's work in round 2 displays a link named 'review' with its round number (2) and timestamps (you could redirect to that review by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:51

  17) timestamps for student's submissions when current assignment (with multiple review round) is in review stage after current participant reviews other's work in round 1 displays a link named 'review' with its round number (1) and timestamps (you could redirect to that review by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:45

  18) timestamps for student's submissions when current assignment (with single review round) is in review stage after current participant finishes an author feedback displays a link named 'feedback' with its timestamps (you could redirect to that feedback by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:36

  19) timestamps for student's submissions when current assignment (with single review round) is in review stage after current participant reviews other's work displays a link named 'review' with its timestamps (you could redirect to that review by clicking the link) 
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:30

  20) timestamps for student's submissions when current assignment is in submission stage after current participant has uploaded a file displays file names with its timestamps
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:23

  21) timestamps for student's submissions when current assignment is in submission stage after current participant has submitted a hyperlink displays hyperlinks with its timestamps
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:18

  22) timestamps for student's submissions when current assignment is in submission stage when current participant does not submit anything yet displays due dates of current assignment in student_task#list page
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:14

  23) Team Creation one student should send an invitation to other student who has a topic signed up for Student should accept the invitation sent by other student who has a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:237

  24) Team Creation one student should send an invitation to other student who has a topic signed up for Student should reject the inviattion sent by the other student who has a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:243

  25) Team Creation one student who has a topic sends an invitation to other student who also has a topic student should reject the invitation sent by the other student and both gave topics
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:128

  26) Team Creation one student who has a topic sends an invitation to other student who also has a topic Student should aceept the invitation sent by the other student and both have topics
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:122

  27) Team Creation one student who signup for a topic should send an inviatation to the other student who has no topic is not able to form team on rejecting
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:63

  28) Team Creation one student who signup for a topic should send an inviatation to the other student who has no topic is able to accept the invitation and form team
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:57

  29) Team Creation one student should send an invitation to other student and both does not have topics Student should accept other students invitation and both does not have a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:181

  30) Team Creation one student should send an invitation to other student and both does not have topics Student should reject the other students invitaton and both dont have a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:187

  31) SignUpSheet.add_signup_topic will return a SignUpSheet when the topic already has deadlines
     # skip test on staggered deadline temporarily
     # ./spec/models/sign_up_sheet_spec.rb:36

  32) SimiCheckWebservice .get_all_comparisons any time called returns a response with code 200 and body containing all comparisons
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:17

  33) SimiCheckWebservice .get_similarity_nxn called with a comparison id returns a response with code 200 and body containing info about the results
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:118

  34) SimiCheckWebservice .get_comparison_details called with a comparison id returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:53

  35) SimiCheckWebservice .update_comparison called with a new comparison name returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:68

  36) SimiCheckWebservice .upload_file called with a comparison id and filepath returns a response with code 200 and body containing info about the file
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:81

  37) SimiCheckWebservice .delete_files called with a comparison id and filenames to delete returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:99

  38) SimiCheckWebservice .delete_comparison called with a comparison id returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:41

  39) SimiCheckWebservice .visualize_comparison called with a comparison id and two filenames returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:171

  40) SimiCheckWebservice .new_comparison called with a comparison_name returns a response with code 200, and body containing the name and new id for this comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:28

  41) SimiCheckWebservice .visualize_similarity called with a comparison id returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:145


Failures:

  1) AssignmentTeam #includes? when an assignment team has one participant includes one participant
     Failure/Error: expect(team.includes?(participant)).to eq true
     
       expected: true
            got: false
     
       (compared using ==)
     # ./spec/models/assignment_team_spec.rb:29:in `block (4 levels) in <top (required)>'

Finished in 9 minutes 20 seconds (files took 5.23 seconds to load)
650 examples, 1 failure, 41 pending

Failed examples:

rspec ./spec/models/assignment_team_spec.rb:26 # AssignmentTeam #includes? when an assignment team has one participant includes one participant

Randomized with seed 724

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 5934 / 13506 LOC (43.94%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5815.1
[Coveralls] https://coveralls.io/jobs/41444022
Coverage is at 43.94%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: bfa9f9d0-d647-11e8-9e21-2d628ca2e168

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 293
.................F

Failures:

  1) Student reviewers can take the quizzes can take quiz
     Failure/Error: visit root_path
     
     Selenium::WebDriver::Error::UnknownError:
       newSession
     # stack backtrace:
     #    0:           0x5787ed - backtrace::backtrace::trace::h59229d13f6a8837d
     #    1:           0x578942 - backtrace::capture::Backtrace::new::h23089c033eded8f0
     #    2:           0x4463cc - webdriver::error::WebDriverError::new::hd11f864b1fdf4510
     #    3:           0x454c93 - geckodriver::marionette::MarionetteSession::response::h1547050944cdade1
     #    4:           0x469104 - geckodriver::marionette::MarionetteConnection::send_command::h5f9bb9f7e777eadb
     #    5:           0x42625f - <webdriver::server::Dispatcher<T, U>>::run::h8f5348b8f5f7c053
     #    6:           0x40b22c - std::panicking::try::do_call::hb67c6fb6bcd96195
     #    7:           0x5dc20a - panic_unwind::__rust_maybe_catch_panic
     #                         at /checkout/src/libpanic_unwind/lib.rs:98
     #    8:           0x41b943 - <F as alloc::boxed::FnBox<A>>::call_box::h4100941edc372034
     #    9:           0x5d48a4 - alloc::boxed::{{impl}}::call_once<(),()>
     #                         at /checkout/src/liballoc/boxed.rs:650
     #                          - std::sys_common::thread::start_thread
     #                         at /checkout/src/libstd/sys_common/thread.rs:21
     #                          - std::sys::imp::thread::{{impl}}::new::thread_start
     #                         at /checkout/src/libstd/sys/unix/thread.rs:84
     # ./spec/rails_helper.rb:62:in `login_as'
     # ./spec/features/quiz_spec.rb:298:in `block (2 levels) in <top (required)>'

Finished in 15.75 seconds (files took 5.22 seconds to load)
18 examples, 1 failure

Failed examples:

rspec ./spec/features/quiz_spec.rb:297 # Student reviewers can take the quizzes can take quiz

Randomized with seed 293

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 1798 / 14660 LOC (12.26%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5827.1
[Coveralls] https://coveralls.io/jobs/41488388
Coverage is at 12.26%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 730a5500-d707-11e8-a0c1-37e29dcbd83a

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 2862
.................................F

Failures:

  1) Airbrake expection errors can delete topics in staggered deadline assignment
     Failure/Error: visit root_path
     
     Selenium::WebDriver::Error::UnknownError:
       newSession
     # stack backtrace:
     #    0:           0x5787ed - backtrace::backtrace::trace::h59229d13f6a8837d
     #    1:           0x578942 - backtrace::capture::Backtrace::new::h23089c033eded8f0
     #    2:           0x4463cc - webdriver::error::WebDriverError::new::hd11f864b1fdf4510
     #    3:           0x454c93 - geckodriver::marionette::MarionetteSession::response::h1547050944cdade1
     #    4:           0x469104 - geckodriver::marionette::MarionetteConnection::send_command::h5f9bb9f7e777eadb
     #    5:           0x42625f - <webdriver::server::Dispatcher<T, U>>::run::h8f5348b8f5f7c053
     #    6:           0x40b22c - std::panicking::try::do_call::hb67c6fb6bcd96195
     #    7:           0x5dc20a - panic_unwind::__rust_maybe_catch_panic
     #                         at /checkout/src/libpanic_unwind/lib.rs:98
     #    8:           0x41b943 - <F as alloc::boxed::FnBox<A>>::call_box::h4100941edc372034
     #    9:           0x5d48a4 - alloc::boxed::{{impl}}::call_once<(),()>
     #                         at /checkout/src/liballoc/boxed.rs:650
     #                          - std::sys_common::thread::start_thread
     #                         at /checkout/src/libstd/sys_common/thread.rs:21
     #                          - std::sys::imp::thread::{{impl}}::new::thread_start
     #                         at /checkout/src/libstd/sys/unix/thread.rs:84
     # ./spec/rails_helper.rb:62:in `login_as'
     # ./spec/features/airbrake_expection_errors_feature_tests_spec.rb:65:in `block (2 levels) in <top (required)>'

Finished in 53.38 seconds (files took 5.23 seconds to load)
34 examples, 1 failure

Failed examples:

rspec ./spec/features/airbrake_expection_errors_feature_tests_spec.rb:62 # Airbrake expection errors can delete topics in staggered deadline assignment

Randomized with seed 2862

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 2364 / 14347 LOC (16.48%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5829.1
[Coveralls] https://coveralls.io/jobs/41489794
Coverage is at 16.48%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 3dfd5780-d70d-11e8-a0c1-37e29dcbd83a

@coveralls
Copy link

coveralls commented Oct 23, 2018

Pull Request Test Coverage Report for Build 6018

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 47.896%

Totals Coverage Status
Change from base Build 5965: 0.2%
Covered Lines: 6384
Relevant Lines: 13329

💛 - Coveralls

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 21293
....................................................................................................................................................................**..*F

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) expert review when current assignment with vary-rubric-by-round supports expert peer-review expert review feature works correctly
     # Not yet implemented
     # ./spec/features/expert_review_spec.rb:28

  2) expert review when current assignment with single review round supports expert peer-review expert review feature works correctly
     # Not yet implemented
     # ./spec/features/expert_review_spec.rb:14

  3) review mapping calculate review mapping from given review number per student
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:95


Failures:

  1) review mapping can unsubmit a review
     Failure/Error: visit root_path
     
     Selenium::WebDriver::Error::UnknownError:
       newSession
     # stack backtrace:
     #    0:           0x5787ed - backtrace::backtrace::trace::h59229d13f6a8837d
     #    1:           0x578942 - backtrace::capture::Backtrace::new::h23089c033eded8f0
     #    2:           0x4463cc - webdriver::error::WebDriverError::new::hd11f864b1fdf4510
     #    3:           0x454c93 - geckodriver::marionette::MarionetteSession::response::h1547050944cdade1
     #    4:           0x469104 - geckodriver::marionette::MarionetteConnection::send_command::h5f9bb9f7e777eadb
     #    5:           0x42625f - <webdriver::server::Dispatcher<T, U>>::run::h8f5348b8f5f7c053
     #    6:           0x40b22c - std::panicking::try::do_call::hb67c6fb6bcd96195
     #    7:           0x5dc20a - panic_unwind::__rust_maybe_catch_panic
     #                         at /checkout/src/libpanic_unwind/lib.rs:98
     #    8:           0x41b943 - <F as alloc::boxed::FnBox<A>>::call_box::h4100941edc372034
     #    9:           0x5d48a4 - alloc::boxed::{{impl}}::call_once<(),()>
     #                         at /checkout/src/liballoc/boxed.rs:650
     #                          - std::sys_common::thread::start_thread
     #                         at /checkout/src/libstd/sys_common/thread.rs:21
     #                          - std::sys::imp::thread::{{impl}}::new::thread_start
     #                         at /checkout/src/libstd/sys/unix/thread.rs:84
     # ./spec/rails_helper.rb:62:in `login_as'
     # ./spec/features/review_mapping_spec.rb:2:in `login_and_assign_reviewer'
     # ./spec/features/review_mapping_spec.rb:112:in `block (2 levels) in <top (required)>'

Finished in 2 minutes 30.3 seconds (files took 5.38 seconds to load)
170 examples, 1 failure, 3 pending

Failed examples:

rspec ./spec/features/review_mapping_spec.rb:110 # review mapping can unsubmit a review

Randomized with seed 21293

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 3077 / 14216 LOC (21.64%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5830.1
[Coveralls] https://coveralls.io/jobs/41489883
Coverage is at 21.64%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 96e9c6d0-d70d-11e8-a0c1-37e29dcbd83a

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 11081
********............................*..........F

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) timestamps for student's submissions when current assignment (with multiple review round) is in review stage after current participant finishes an author feedback displays a link named 'feedback' with its timestamps (you could redirect to that feedback by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:58

  2) timestamps for student's submissions when current assignment (with multiple review round) is in review stage after current participant reviews other's work in round 1 displays a link named 'review' with its round number (1) and timestamps (you could redirect to that review by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:45

  3) timestamps for student's submissions when current assignment (with multiple review round) is in review stage after current participant reviews other's work in round 2 displays a link named 'review' with its round number (2) and timestamps (you could redirect to that review by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:51

  4) timestamps for student's submissions when current assignment is in submission stage after current participant has submitted a hyperlink displays hyperlinks with its timestamps
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:18

  5) timestamps for student's submissions when current assignment is in submission stage when current participant does not submit anything yet displays due dates of current assignment in student_task#list page
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:14

  6) timestamps for student's submissions when current assignment is in submission stage after current participant has uploaded a file displays file names with its timestamps
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:23

  7) timestamps for student's submissions when current assignment (with single review round) is in review stage after current participant finishes an author feedback displays a link named 'feedback' with its timestamps (you could redirect to that feedback by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:36

  8) timestamps for student's submissions when current assignment (with single review round) is in review stage after current participant reviews other's work displays a link named 'review' with its timestamps (you could redirect to that review by clicking the link) 
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:30

  9) GradesController#view_team renders grades#view_team page
     # Temporarily skipped with xdescribe
     # ./spec/controllers/grades_controller_spec.rb:95


Failures:

  1) Student reviewers can view the quizzes they take can view quiz
     Failure/Error: visit root_path
     
     Selenium::WebDriver::Error::UnknownError:
       newSession
     # stack backtrace:
     #    0:           0x5787ed - backtrace::backtrace::trace::h59229d13f6a8837d
     #    1:           0x578942 - backtrace::capture::Backtrace::new::h23089c033eded8f0
     #    2:           0x4463cc - webdriver::error::WebDriverError::new::hd11f864b1fdf4510
     #    3:           0x454c93 - geckodriver::marionette::MarionetteSession::response::h1547050944cdade1
     #    4:           0x469104 - geckodriver::marionette::MarionetteConnection::send_command::h5f9bb9f7e777eadb
     #    5:           0x42625f - <webdriver::server::Dispatcher<T, U>>::run::h8f5348b8f5f7c053
     #    6:           0x40b22c - std::panicking::try::do_call::hb67c6fb6bcd96195
     #    7:           0x5dc20a - panic_unwind::__rust_maybe_catch_panic
     #                         at /checkout/src/libpanic_unwind/lib.rs:98
     #    8:           0x41b943 - <F as alloc::boxed::FnBox<A>>::call_box::h4100941edc372034
     #    9:           0x5d48a4 - alloc::boxed::{{impl}}::call_once<(),()>
     #                         at /checkout/src/liballoc/boxed.rs:650
     #                          - std::sys_common::thread::start_thread
     #                         at /checkout/src/libstd/sys_common/thread.rs:21
     #                          - std::sys::imp::thread::{{impl}}::new::thread_start
     #                         at /checkout/src/libstd/sys/unix/thread.rs:84
     # ./spec/rails_helper.rb:62:in `login_as'
     # ./spec/features/quiz_spec.rb:316:in `block (2 levels) in <top (required)>'

Finished in 28.34 seconds (files took 5.19 seconds to load)
48 examples, 1 failure, 9 pending

Failed examples:

rspec ./spec/features/quiz_spec.rb:315 # Student reviewers can view the quizzes they take can view quiz

Randomized with seed 11081

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 2143 / 14677 LOC (14.6%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5847.1
[Coveralls] https://coveralls.io/jobs/41531568
Coverage is at 14.6%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 2d444730-d7d7-11e8-9c01-d7c60254052a

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 55154
......................................................................*..F

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) SignUpSheet.add_signup_topic will return a SignUpSheet when the topic already has deadlines
     # skip test on staggered deadline temporarily
     # ./spec/models/sign_up_sheet_spec.rb:36


Failures:

  1) Student reviewers can view the quizzes they take can view quiz
     Failure/Error: visit root_path
     
     Selenium::WebDriver::Error::UnknownError:
       newSession
     # stack backtrace:
     #    0:           0x5787ed - backtrace::backtrace::trace::h59229d13f6a8837d
     #    1:           0x578942 - backtrace::capture::Backtrace::new::h23089c033eded8f0
     #    2:           0x4463cc - webdriver::error::WebDriverError::new::hd11f864b1fdf4510
     #    3:           0x454c93 - geckodriver::marionette::MarionetteSession::response::h1547050944cdade1
     #    4:           0x469104 - geckodriver::marionette::MarionetteConnection::send_command::h5f9bb9f7e777eadb
     #    5:           0x42625f - <webdriver::server::Dispatcher<T, U>>::run::h8f5348b8f5f7c053
     #    6:           0x40b22c - std::panicking::try::do_call::hb67c6fb6bcd96195
     #    7:           0x5dc20a - panic_unwind::__rust_maybe_catch_panic
     #                         at /checkout/src/libpanic_unwind/lib.rs:98
     #    8:           0x41b943 - <F as alloc::boxed::FnBox<A>>::call_box::h4100941edc372034
     #    9:           0x5d48a4 - alloc::boxed::{{impl}}::call_once<(),()>
     #                         at /checkout/src/liballoc/boxed.rs:650
     #                          - std::sys_common::thread::start_thread
     #                         at /checkout/src/libstd/sys_common/thread.rs:21
     #                          - std::sys::imp::thread::{{impl}}::new::thread_start
     #                         at /checkout/src/libstd/sys/unix/thread.rs:84
     # ./spec/rails_helper.rb:62:in `login_as'
     # ./spec/features/quiz_spec.rb:316:in `block (2 levels) in <top (required)>'

Finished in 1 minute 24.12 seconds (files took 5.32 seconds to load)
74 examples, 1 failure, 1 pending

Failed examples:

rspec ./spec/features/quiz_spec.rb:315 # Student reviewers can view the quizzes they take can view quiz

Randomized with seed 55154

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 2103 / 14426 LOC (14.58%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5850.1
[Coveralls] https://coveralls.io/jobs/41538001
Coverage is at 14.58%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: fc99af10-d800-11e8-9c01-d7c60254052a

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 47253
...............................................................F

Failures:

  1) appropriate quiz taking times should not be able to take quiz before doing review
     Failure/Error: visit root_path
     
     Selenium::WebDriver::Error::UnknownError:
       newSession
     # stack backtrace:
     #    0:           0x5787ed - backtrace::backtrace::trace::h59229d13f6a8837d
     #    1:           0x578942 - backtrace::capture::Backtrace::new::h23089c033eded8f0
     #    2:           0x4463cc - webdriver::error::WebDriverError::new::hd11f864b1fdf4510
     #    3:           0x454c93 - geckodriver::marionette::MarionetteSession::response::h1547050944cdade1
     #    4:           0x469104 - geckodriver::marionette::MarionetteConnection::send_command::h5f9bb9f7e777eadb
     #    5:           0x42625f - <webdriver::server::Dispatcher<T, U>>::run::h8f5348b8f5f7c053
     #    6:           0x40b22c - std::panicking::try::do_call::hb67c6fb6bcd96195
     #    7:           0x5dc20a - panic_unwind::__rust_maybe_catch_panic
     #                         at /checkout/src/libpanic_unwind/lib.rs:98
     #    8:           0x41b943 - <F as alloc::boxed::FnBox<A>>::call_box::h4100941edc372034
     #    9:           0x5d48a4 - alloc::boxed::{{impl}}::call_once<(),()>
     #                         at /checkout/src/liballoc/boxed.rs:650
     #                          - std::sys_common::thread::start_thread
     #                         at /checkout/src/libstd/sys_common/thread.rs:21
     #                          - std::sys::imp::thread::{{impl}}::new::thread_start
     #                         at /checkout/src/libstd/sys/unix/thread.rs:84
     # ./spec/rails_helper.rb:62:in `login_as'
     # ./spec/features/quiz_spec.rb:174:in `block (2 levels) in <top (required)>'

Finished in 1 minute 6.18 seconds (files took 4.96 seconds to load)
64 examples, 1 failure

Failed examples:

rspec ./spec/features/quiz_spec.rb:173 # appropriate quiz taking times should not be able to take quiz before doing review

Randomized with seed 47253

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 2330 / 14246 LOC (16.36%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5851.1
[Coveralls] https://coveralls.io/jobs/41538006
Coverage is at 16.36%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 0d1ab0a0-d801-11e8-9c01-d7c60254052a

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 23413
.F

Failures:

  1) Airbrake expection errors can delete topics in staggered deadline assignment
     Failure/Error: visit root_path
     
     Selenium::WebDriver::Error::UnknownError:
       newSession
     # stack backtrace:
     #    0:           0x5787ed - backtrace::backtrace::trace::h59229d13f6a8837d
     #    1:           0x578942 - backtrace::capture::Backtrace::new::h23089c033eded8f0
     #    2:           0x4463cc - webdriver::error::WebDriverError::new::hd11f864b1fdf4510
     #    3:           0x454c93 - geckodriver::marionette::MarionetteSession::response::h1547050944cdade1
     #    4:           0x469104 - geckodriver::marionette::MarionetteConnection::send_command::h5f9bb9f7e777eadb
     #    5:           0x42625f - <webdriver::server::Dispatcher<T, U>>::run::h8f5348b8f5f7c053
     #    6:           0x40b22c - std::panicking::try::do_call::hb67c6fb6bcd96195
     #    7:           0x5dc20a - panic_unwind::__rust_maybe_catch_panic
     #                         at /checkout/src/libpanic_unwind/lib.rs:98
     #    8:           0x41b943 - <F as alloc::boxed::FnBox<A>>::call_box::h4100941edc372034
     #    9:           0x5d48a4 - alloc::boxed::{{impl}}::call_once<(),()>
     #                         at /checkout/src/liballoc/boxed.rs:650
     #                          - std::sys_common::thread::start_thread
     #                         at /checkout/src/libstd/sys_common/thread.rs:21
     #                          - std::sys::imp::thread::{{impl}}::new::thread_start
     #                         at /checkout/src/libstd/sys/unix/thread.rs:84
     # ./spec/rails_helper.rb:62:in `login_as'
     # ./spec/features/airbrake_expection_errors_feature_tests_spec.rb:65:in `block (2 levels) in <top (required)>'

Finished in 26.22 seconds (files took 5.61 seconds to load)
2 examples, 1 failure

Failed examples:

rspec ./spec/features/airbrake_expection_errors_feature_tests_spec.rb:62 # Airbrake expection errors can delete topics in staggered deadline assignment

Randomized with seed 23413

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 1886 / 14596 LOC (12.92%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5852.1
[Coveralls] https://coveralls.io/jobs/41538212
Coverage is at 12.92%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 7b1dc450-d803-11e8-9c01-d7c60254052a

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 41857
....................................**********.............................................................................................................................F

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) team invitation when current assignment is not a team-based assignment when a student access studet_task#list page of this assignment does not contain 'Your team' link on the page
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:68

  2) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) shows a list of students who do not have a team and team owner can invite these students by clicking the 'invite' buttons
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:44

  3) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) when invitee accepting the invitation when the team is already full makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:56

  4) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) when invitee accepting the invitation when the team is not full makes invitee joins the team
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:52

  5) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) when invitee declining the invitation makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:47

  6) team invitation when current assignment is a team-based assignment with topics when a student access studet_task#list page of this assignment contains 'Your team' link on the page
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:14

  7) team invitation when current assignment is a team-based assignment with topics on teams#list page (instructor end) shows a list of students who do not have a team
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:62

  8) team invitation when current assignment is a team-based assignment with topics advertisement feature when team owner declining the invitation makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:29

  9) team invitation when current assignment is a team-based assignment with topics advertisement feature when team owner accepting the invitation when the team is already full makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:38

  10) team invitation when current assignment is a team-based assignment with topics advertisement feature when team owner accepting the invitation when the team is not full makes requester joins the team
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:34


Failures:

  1) Instructor can view quiz questions and scores
     Failure/Error: visit root_path
     
     Selenium::WebDriver::Error::UnknownError:
       newSession
     # stack backtrace:
     #    0:           0x5787ed - backtrace::backtrace::trace::h59229d13f6a8837d
     #    1:           0x578942 - backtrace::capture::Backtrace::new::h23089c033eded8f0
     #    2:           0x4463cc - webdriver::error::WebDriverError::new::hd11f864b1fdf4510
     #    3:           0x454c93 - geckodriver::marionette::MarionetteSession::response::h1547050944cdade1
     #    4:           0x469104 - geckodriver::marionette::MarionetteConnection::send_command::h5f9bb9f7e777eadb
     #    5:           0x42625f - <webdriver::server::Dispatcher<T, U>>::run::h8f5348b8f5f7c053
     #    6:           0x40b22c - std::panicking::try::do_call::hb67c6fb6bcd96195
     #    7:           0x5dc20a - panic_unwind::__rust_maybe_catch_panic
     #                         at /checkout/src/libpanic_unwind/lib.rs:98
     #    8:           0x41b943 - <F as alloc::boxed::FnBox<A>>::call_box::h4100941edc372034
     #    9:           0x5d48a4 - alloc::boxed::{{impl}}::call_once<(),()>
     #                         at /checkout/src/liballoc/boxed.rs:650
     #                          - std::sys_common::thread::start_thread
     #                         at /checkout/src/libstd/sys_common/thread.rs:21
     #                          - std::sys::imp::thread::{{impl}}::new::thread_start
     #                         at /checkout/src/libstd/sys/unix/thread.rs:84
     # ./spec/rails_helper.rb:62:in `login_as'
     # ./spec/features/quiz_spec.rb:246:in `block (2 levels) in <top (required)>'

Finished in 2 minutes 38.5 seconds (files took 5.47 seconds to load)
172 examples, 1 failure, 10 pending

Failed examples:

rspec ./spec/features/quiz_spec.rb:245 # Instructor can view quiz questions and scores

Randomized with seed 41857

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 2944 / 14199 LOC (20.73%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5856.1
[Coveralls] https://coveralls.io/jobs/41571432
Coverage is at 20.73%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 6d7a6800-d897-11e8-b9f2-b1fbc111596d

describe ".get_first_member" do
context "when team id is present" do
it "get first member of the team" do

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra empty line detected at block body beginning.

end
end

describe ".remove_team_by_id" do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

context "when a team has an id" do
it "delete the team by id" do
team = build(:assignment_team, id: 1)
allow(AssignmentTeam).to receive(:find).with(1).and_return(team)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

it "delete the team by id" do
team = build(:assignment_team, id: 1)
allow(AssignmentTeam).to receive(:find).with(1).and_return(team)
expect(AssignmentTeam.remove_team_by_id(team.id)).to eq(team)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

it "get first member of the team" do

team = build(:assignment_team, id: 1)
build(:student, id: 3)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

expect(team.includes?(participant)).to eq true
end
end

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace detected.

team = build(:assignment_team, id: 1)
build(:student, id: 3)
participant1 = build(:participant, id: 1, user_id: 3)
team_user1 = build(:team_user, team_id: 1, user_id: 3)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace detected.

build(:student, id: 3)
participant1 = build(:participant, id: 1, user_id: 3)
team_user1 = build(:team_user, team_id: 1, user_id: 3)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace detected.

expect(AssignmentTeam.remove_team_by_id(team.id)).to eq(team)
end
end
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end at 70, 2 is not aligned with describe ".remove_team_by_id" do at 62, 1.

team = build(:assignment_team, id: 1)
build(:student, id: 3)
participant1 = build(:participant, id: 1, user_id: 3)
team_user1 = build(:team_user, team_id: 1, user_id: 3)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless assignment to variable - team_user1.

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 45219
*****.............*****....................................................................**********.........................................................................................................................*.........*........................................................................................................................*.......................................................................................................................................................................*...********...*.*.**.....********............................................**********...................................................F

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) calibration when current assignment is in review stage excludes calibration reviews from outstanding review restriction and total review restriction
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:39

  2) calibration when current assignment is in review stage shows 'Review 1, 2, 3...' instead of 'Calibration review 1, 2, 3...' on student_review#list page
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:41

  3) calibration when current assignment is in calibration stage calibration feature works correctly
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:27

  4) calibration in assignments#edit page has a checkbox with title 'Calibration for training?' on 'General' tab
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:13

  5) calibration in assignments#edit page when clicking 'Calibration for training?' checkbox and clicking 'save' button 'Calibration' due date works correctly
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:17

  6) badge system in assignments#edit page has a tab named 'Badges'
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:13

  7) badge system in assignments#edit page when switching to 'Badges' tab allows instructor to change the thresholds of two badges (by default is 95) and save thresholds to DB
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:16

  8) badge system when a student receives a very high review grades assigned by teaching staff (higher than 95 by default) assigns the 'Good reviewer' badge to this student on student_task#list page
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:25

  9) badge system when a student receives a very high average teammate review grade (higher than 95 by default) assigns the 'Good teammate' badge to this student on student_task#list page
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:21

  10) badge system on participants#list page allows instructor to view badges assignment statuses of all participants
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:29

  11) SimiCheckWebservice .delete_files called with a comparison id and filenames to delete returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:99

  12) SimiCheckWebservice .get_similarity_nxn called with a comparison id returns a response with code 200 and body containing info about the results
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:118

  13) SimiCheckWebservice .visualize_similarity called with a comparison id returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:145

  14) SimiCheckWebservice .get_comparison_details called with a comparison id returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:53

  15) SimiCheckWebservice .update_comparison called with a new comparison name returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:68

  16) SimiCheckWebservice .visualize_comparison called with a comparison id and two filenames returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:171

  17) SimiCheckWebservice .new_comparison called with a comparison_name returns a response with code 200, and body containing the name and new id for this comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:28

  18) SimiCheckWebservice .delete_comparison called with a comparison id returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:41

  19) SimiCheckWebservice .get_all_comparisons any time called returns a response with code 200 and body containing all comparisons
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:17

  20) SimiCheckWebservice .upload_file called with a comparison id and filepath returns a response with code 200 and body containing info about the file
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:81

  21) Answer#test get total score checks if submission_valid? is called
     # Temporarily skipped with xit
     # ./spec/models/answer_spec.rb:40

  22) Answer submission valid? Checking for when valid due date objects are passed back to @sorted_deadlines
     # Temporarily skipped with xit
     # ./spec/models/answer_spec.rb:135

  23) SignUpSheet.add_signup_topic will return a SignUpSheet when the topic already has deadlines
     # skip test on staggered deadline temporarily
     # ./spec/models/sign_up_sheet_spec.rb:36

  24) GradesController#view_team renders grades#view_team page
     # Temporarily skipped with xdescribe
     # ./spec/controllers/grades_controller_spec.rb:95

  25) Team Creation one student should send an invitation to other student and both does not have topics Student should reject the other students invitaton and both dont have a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:187

  26) Team Creation one student should send an invitation to other student and both does not have topics Student should accept other students invitation and both does not have a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:181

  27) Team Creation one student should send an invitation to other student who has a topic signed up for Student should reject the inviattion sent by the other student who has a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:243

  28) Team Creation one student should send an invitation to other student who has a topic signed up for Student should accept the invitation sent by other student who has a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:237

  29) Team Creation one student who has a topic sends an invitation to other student who also has a topic student should reject the invitation sent by the other student and both gave topics
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:128

  30) Team Creation one student who has a topic sends an invitation to other student who also has a topic Student should aceept the invitation sent by the other student and both have topics
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:122

  31) Team Creation one student who signup for a topic should send an inviatation to the other student who has no topic is not able to form team on rejecting
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:63

  32) Team Creation one student who signup for a topic should send an inviatation to the other student who has no topic is able to accept the invitation and form team
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:57

  33) review mapping calculate review mapping from given review number per student
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:95

  34) review mapping show error when assign both 0
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:89

  35) review mapping show error when assign both 2
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:83

  36) review mapping calculate reviewmapping from given review number per submission
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:102

  37) timestamps for student's submissions when current assignment (with single review round) is in review stage after current participant reviews other's work displays a link named 'review' with its timestamps (you could redirect to that review by clicking the link) 
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:30

  38) timestamps for student's submissions when current assignment (with single review round) is in review stage after current participant finishes an author feedback displays a link named 'feedback' with its timestamps (you could redirect to that feedback by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:36

  39) timestamps for student's submissions when current assignment (with multiple review round) is in review stage after current participant reviews other's work in round 2 displays a link named 'review' with its round number (2) and timestamps (you could redirect to that review by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:51

  40) timestamps for student's submissions when current assignment (with multiple review round) is in review stage after current participant reviews other's work in round 1 displays a link named 'review' with its round number (1) and timestamps (you could redirect to that review by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:45

  41) timestamps for student's submissions when current assignment (with multiple review round) is in review stage after current participant finishes an author feedback displays a link named 'feedback' with its timestamps (you could redirect to that feedback by clicking the link)
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:58

  42) timestamps for student's submissions when current assignment is in submission stage when current participant does not submit anything yet displays due dates of current assignment in student_task#list page
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:14

  43) timestamps for student's submissions when current assignment is in submission stage after current participant has submitted a hyperlink displays hyperlinks with its timestamps
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:18

  44) timestamps for student's submissions when current assignment is in submission stage after current participant has uploaded a file displays file names with its timestamps
     # Not yet implemented
     # ./spec/features/timestamps_for_students_submissions_spec.rb:23

  45) team invitation when current assignment is not a team-based assignment when a student access studet_task#list page of this assignment does not contain 'Your team' link on the page
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:68

  46) team invitation when current assignment is a team-based assignment with topics on teams#list page (instructor end) shows a list of students who do not have a team
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:62

  47) team invitation when current assignment is a team-based assignment with topics advertisement feature when team owner declining the invitation makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:29

  48) team invitation when current assignment is a team-based assignment with topics advertisement feature when team owner accepting the invitation when the team is not full makes requester joins the team
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:34

  49) team invitation when current assignment is a team-based assignment with topics advertisement feature when team owner accepting the invitation when the team is already full makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:38

  50) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) shows a list of students who do not have a team and team owner can invite these students by clicking the 'invite' buttons
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:44

  51) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) when invitee declining the invitation makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:47

  52) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) when invitee accepting the invitation when the team is already full makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:56

  53) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) when invitee accepting the invitation when the team is not full makes invitee joins the team
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:52

  54) team invitation when current assignment is a team-based assignment with topics when a student access studet_task#list page of this assignment contains 'Your team' link on the page
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:14


Failures:

  1) AssignmentTeam #path returns the path
     Failure/Error: expect(team.path).to eq "/home/expertiza_developer/Desktop/expertiza/pg_data/instructor6/csc517/test/final_test/0"
     
       expected: "/home/expertiza_developer/Desktop/expertiza/pg_data/instructor6/csc517/test/final_test/0"
            got: "/home/travis/build/expertiza/expertiza/pg_data/instructor6/csc517/test/final_test/0"
     
       (compared using ==)
     # ./spec/models/assignment_team_spec.rb:199:in `block (3 levels) in <top (required)>'

Finished in 10 minutes 11 seconds (files took 5.38 seconds to load)
661 examples, 1 failure, 54 pending

Failed examples:

rspec ./spec/models/assignment_team_spec.rb:198 # AssignmentTeam #path returns the path

Randomized with seed 45219

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 5625 / 13485 LOC (41.71%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5951.1
[Coveralls] https://coveralls.io/jobs/41695089
Coverage is at 41.71%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: cfc35550-dbec-11e8-8e0f-4de0fcdedaae

@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 5433
..................................................................********.......*....................................*****..........................................................................................***.*............************........................*..........*..*..............*......................................................................................................................................................................................F

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Team Creation one student should send an invitation to other student who has a topic signed up for Student should reject the inviattion sent by the other student who has a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:243

  2) Team Creation one student should send an invitation to other student who has a topic signed up for Student should accept the invitation sent by other student who has a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:237

  3) Team Creation one student who signup for a topic should send an inviatation to the other student who has no topic is able to accept the invitation and form team
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:57

  4) Team Creation one student who signup for a topic should send an inviatation to the other student who has no topic is not able to form team on rejecting
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:63

  5) Team Creation one student should send an invitation to other student and both does not have topics Student should reject the other students invitaton and both dont have a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:187

  6) Team Creation one student should send an invitation to other student and both does not have topics Student should accept other students invitation and both does not have a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:181

  7) Team Creation one student who has a topic sends an invitation to other student who also has a topic student should reject the invitation sent by the other student and both gave topics
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:128

  8) Team Creation one student who has a topic sends an invitation to other student who also has a topic Student should aceept the invitation sent by the other student and both have topics
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:122

  9) SignUpSheet.add_signup_topic will return a SignUpSheet when the topic already has deadlines
     # skip test on staggered deadline temporarily
     # ./spec/models/sign_up_sheet_spec.rb:36

  10) calibration when current assignment is in review stage shows 'Review 1, 2, 3...' instead of 'Calibration review 1, 2, 3...' on student_review#list page
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:41

  11) calibration when current assignment is in review stage excludes calibration reviews from outstanding review restriction and total review restriction
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:39

  12) calibration when current assignment is in calibration stage calibration feature works correctly
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:27

  13) calibration in assignments#edit page has a checkbox with title 'Calibration for training?' on 'General' tab
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:13

  14) calibration in assignments#edit page when clicking 'Calibration for training?' checkbox and clicking 'save' button 'Calibration' due date works correctly
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:17

  15) review mapping show error when assign both 0
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:89

  16) review mapping show error when assign both 2
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:83

  17) review mapping calculate review mapping from given review number per student
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:95

  18) review mapping calculate reviewmapping from given review number per submission
     # skip test on automated review mapping, too time consuming
     # ./spec/features/review_mapping_spec.rb:102

  19) expert review when current assignment with vary-rubric-by-round supports expert peer-review expert review feature works correctly
     # Not yet implemented
     # ./spec/features/expert_review_spec.rb:28

  20) expert review when current assignment with single review round supports expert peer-review expert review feature works correctly
     # Not yet implemented
     # ./spec/features/expert_review_spec.rb:14

  21) SimiCheckWebservice .update_comparison called with a new comparison name returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:68

  22) SimiCheckWebservice .upload_file called with a comparison id and filepath returns a response with code 200 and body containing info about the file
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:81

  23) SimiCheckWebservice .delete_comparison called with a comparison id returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:41

  24) SimiCheckWebservice .get_comparison_details called with a comparison id returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:53

  25) SimiCheckWebservice .get_similarity_nxn called with a comparison id returns a response with code 200 and body containing info about the results
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:118

  26) SimiCheckWebservice .new_comparison called with a comparison_name returns a response with code 200, and body containing the name and new id for this comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:28

  27) SimiCheckWebservice .visualize_comparison called with a comparison id and two filenames returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:171

  28) SimiCheckWebservice .get_all_comparisons any time called returns a response with code 200 and body containing all comparisons
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:17

  29) SimiCheckWebservice .visualize_similarity called with a comparison id returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:145

  30) SimiCheckWebservice .delete_files called with a comparison id and filenames to delete returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:99

  31) assignment function creation page is able to create with staggered deadline
     # skip test on staggered deadline temporarily
     # ./spec/features/assignment_creation_spec.rb:146

  32) assignment function review strategy tab sets number of reviews by each student
      # review section not yet completed
      Failure/Error: check 'num_reviews_student'
      
      Capybara::ElementNotFound:
        Unable to find visible checkbox "num_reviews_student" that is not disabled
      # ./spec/features/assignment_creation_spec.rb:642:in `block (3 levels) in <top (required)>'

  33) assignment function Due dates tab Able to create a new penalty policy
     # Temporarily skipped with xit
     # ./spec/features/assignment_creation_spec.rb:682

  34) GradesController#view_team renders grades#view_team page
     # Temporarily skipped with xdescribe
     # ./spec/controllers/grades_controller_spec.rb:95


Failures:

  1) AssignmentTeam #path returns the path
     Failure/Error: expect(team.path).to eq "/home/expertiza_developer/Desktop/expertiza/pg_data/instructor6/csc517/test/final_test/0"
     
       expected: "/home/expertiza_developer/Desktop/expertiza/pg_data/instructor6/csc517/test/final_test/0"
            got: "/home/travis/build/expertiza/expertiza/pg_data/instructor6/csc517/test/final_test/0"
     
       (compared using ==)
     # ./spec/models/assignment_team_spec.rb:199:in `block (3 levels) in <top (required)>'

Finished in 9 minutes 18 seconds (files took 5.43 seconds to load)
479 examples, 1 failure, 34 pending

Failed examples:

rspec ./spec/models/assignment_team_spec.rb:198 # AssignmentTeam #path returns the path

Randomized with seed 5433

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 4931 / 13561 LOC (36.36%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5953.1
[Coveralls] https://coveralls.io/jobs/41695835
Coverage is at 36.36%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 5240ed10-dbf4-11e8-8e0f-4de0fcdedaae

Conflicts:
	spec/models/assignment_team_spec.rb
@TravisBuddy
Copy link

Travis tests have failed

Hey @kevacken,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.2.7

View build log

export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null
/home/travis/.rvm/rubies/ruby-2.2.7/bin/ruby -I/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/lib:/home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.6.0/lib /home/travis/build/expertiza/expertiza/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.

Randomized with seed 34095
............................................................********..........................................................................................................................................**********........**********........*.......*..*...............*****......................................................................................................*****........................................................................................................................................................................................F

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Team Creation one student should send an invitation to other student and both does not have topics Student should reject the other students invitaton and both dont have a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:187

  2) Team Creation one student should send an invitation to other student and both does not have topics Student should accept other students invitation and both does not have a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:181

  3) Team Creation one student who has a topic sends an invitation to other student who also has a topic student should reject the invitation sent by the other student and both gave topics
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:128

  4) Team Creation one student who has a topic sends an invitation to other student who also has a topic Student should aceept the invitation sent by the other student and both have topics
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:122

  5) Team Creation one student should send an invitation to other student who has a topic signed up for Student should reject the inviattion sent by the other student who has a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:243

  6) Team Creation one student should send an invitation to other student who has a topic signed up for Student should accept the invitation sent by other student who has a topic
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:237

  7) Team Creation one student who signup for a topic should send an inviatation to the other student who has no topic is not able to form team on rejecting
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:63

  8) Team Creation one student who signup for a topic should send an inviatation to the other student who has no topic is able to accept the invitation and form team
     # Temporarily skipped with xdescribe
     # ./spec/features/team_creation_spec.rb:57

  9) SimiCheckWebservice .upload_file called with a comparison id and filepath returns a response with code 200 and body containing info about the file
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:81

  10) SimiCheckWebservice .delete_files called with a comparison id and filenames to delete returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:99

  11) SimiCheckWebservice .update_comparison called with a new comparison name returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:68

  12) SimiCheckWebservice .get_all_comparisons any time called returns a response with code 200 and body containing all comparisons
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:17

  13) SimiCheckWebservice .get_similarity_nxn called with a comparison id returns a response with code 200 and body containing info about the results
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:118

  14) SimiCheckWebservice .visualize_similarity called with a comparison id returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:145

  15) SimiCheckWebservice .new_comparison called with a comparison_name returns a response with code 200, and body containing the name and new id for this comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:28

  16) SimiCheckWebservice .get_comparison_details called with a comparison id returns a response with code 200 and body containing info about the comparison
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:53

  17) SimiCheckWebservice .delete_comparison called with a comparison id returns a response with code 200
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:41

  18) SimiCheckWebservice .visualize_comparison called with a comparison id and two filenames returns a response with code 200 and body containing the visualize url path
     # Temporarily skipped with xdescribe
     # ./spec/models/simi_check_webservice_spec.rb:171

  19) team invitation when current assignment is a team-based assignment with topics advertisement feature when team owner accepting the invitation when the team is already full makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:38

  20) team invitation when current assignment is a team-based assignment with topics advertisement feature when team owner accepting the invitation when the team is not full makes requester joins the team
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:34

  21) team invitation when current assignment is a team-based assignment with topics advertisement feature when team owner declining the invitation makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:29

  22) team invitation when current assignment is a team-based assignment with topics when a student access studet_task#list page of this assignment contains 'Your team' link on the page
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:14

  23) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) shows a list of students who do not have a team and team owner can invite these students by clicking the 'invite' buttons
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:44

  24) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) when invitee accepting the invitation when the team is already full makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:56

  25) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) when invitee accepting the invitation when the team is not full makes invitee joins the team
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:52

  26) team invitation when current assignment is a team-based assignment with topics on student_teams#view page (student end) when invitee declining the invitation makes team members remain the same as before
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:47

  27) team invitation when current assignment is a team-based assignment with topics on teams#list page (instructor end) shows a list of students who do not have a team
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:62

  28) team invitation when current assignment is not a team-based assignment when a student access studet_task#list page of this assignment does not contain 'Your team' link on the page
     # Not yet implemented
     # ./spec/features/team_invitation_spec.rb:68

  29) assignment function creation page is able to create with staggered deadline
     # skip test on staggered deadline temporarily
     # ./spec/features/assignment_creation_spec.rb:146

  30) assignment function review strategy tab sets number of reviews by each student
      # review section not yet completed
      Failure/Error: check 'num_reviews_student'
      
      Capybara::ElementNotFound:
        Unable to find visible checkbox "num_reviews_student" that is not disabled
      # ./spec/features/assignment_creation_spec.rb:642:in `block (3 levels) in <top (required)>'

  31) assignment function Due dates tab Able to create a new penalty policy
     # Temporarily skipped with xit
     # ./spec/features/assignment_creation_spec.rb:682

  32) badge system on participants#list page allows instructor to view badges assignment statuses of all participants
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:29

  33) badge system when a student receives a very high average teammate review grade (higher than 95 by default) assigns the 'Good teammate' badge to this student on student_task#list page
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:21

  34) badge system when a student receives a very high review grades assigned by teaching staff (higher than 95 by default) assigns the 'Good reviewer' badge to this student on student_task#list page
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:25

  35) badge system in assignments#edit page has a tab named 'Badges'
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:13

  36) badge system in assignments#edit page when switching to 'Badges' tab allows instructor to change the thresholds of two badges (by default is 95) and save thresholds to DB
     # Not yet implemented
     # ./spec/features/badge_system_spec.rb:16

  37) calibration in assignments#edit page has a checkbox with title 'Calibration for training?' on 'General' tab
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:13

  38) calibration in assignments#edit page when clicking 'Calibration for training?' checkbox and clicking 'save' button 'Calibration' due date works correctly
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:17

  39) calibration when current assignment is in calibration stage calibration feature works correctly
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:27

  40) calibration when current assignment is in review stage shows 'Review 1, 2, 3...' instead of 'Calibration review 1, 2, 3...' on student_review#list page
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:41

  41) calibration when current assignment is in review stage excludes calibration reviews from outstanding review restriction and total review restriction
     # Not yet implemented
     # ./spec/features/calibration_spec.rb:39


Failures:

  1) AssignmentTeam #path returns the path
     Failure/Error: expect(team.path).to eq "/home/expertiza_developer/Desktop/expertiza/pg_data/instructor6/csc517/test/final_test/0"
     
       expected: "/home/expertiza_developer/Desktop/expertiza/pg_data/instructor6/csc517/test/final_test/0"
            got: "/home/travis/build/expertiza/expertiza/pg_data/instructor6/csc517/test/final_test/0"
     
       (compared using ==)
     # ./spec/models/assignment_team_spec.rb:231:in `block (3 levels) in <top (required)>'

Finished in 10 minutes 32 seconds (files took 5.34 seconds to load)
566 examples, 1 failure, 41 pending

Failed examples:

rspec ./spec/models/assignment_team_spec.rb:230 # AssignmentTeam #path returns the path

Randomized with seed 34095

Coverage report generated for RSpec to /home/travis/build/expertiza/expertiza/coverage. 5125 / 13519 LOC (37.91%) covered.
[Coveralls] Submitting to https://coveralls.io/api/v1
[Coveralls] Job #5954.1
[Coveralls] https://coveralls.io/jobs/41696063
Coverage is at 37.91%.
Coverage report sent to Coveralls.
TravisBuddy Request Identifier: 687b02d0-dbf6-11e8-8e0f-4de0fcdedaae

team = build(:assignment_team, id: 1)
build(:student, id: 3)
participant1 = build(:participant, id: 1, user_id: 3)
team_user1 = build(:team_user, team_id: 1, user_id: 3)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

it "provides the topic id" do
assignment = team.assignment
allow(SignUpTopic).to receive(:find_by).with(assignment: assignment).and_return(topic)
allow(SignedUpTeam).to receive_message_chain(:find_by, :try).with(team_id: team.id).with(:topic_id).and_return(topic.id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

assignment = team.assignment
allow(SignUpTopic).to receive(:find_by).with(assignment: assignment).and_return(topic)
allow(SignedUpTeam).to receive_message_chain(:find_by, :try).with(team_id: team.id).with(:topic_id).and_return(topic.id)
expect(team.topic).to eq(topic.id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

describe "#delete" do
it "deletes the team" do
allow(team).to receive(:users).with(no_args).and_return([user1, user2])
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user1.id, parent_id: team.parent_id).and_return(participant1)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

it "deletes the team" do
allow(team).to receive(:users).with(no_args).and_return([user1, user2])
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user1.id, parent_id: team.parent_id).and_return(participant1)
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user2.id, parent_id: team.parent_id).and_return(participant2)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

expect(AssignmentTeam.remove_team_by_id(team.id)).to eq(team)
end
end
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end at 74, 2 is not aligned with describe ".remove_team_by_id" do at 66, 1.

allow(Team).to receive(:export).with([], 1, [], instance_of(AssignmentTeam))
expect(Team).to receive(:export).with([], 1, [], instance_of(AssignmentTeam))
AssignmentTeam.export([], 1, [])
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end at 226, 4 is not aligned with it "redirects to Team.export with a new AssignmentTeam object" do at 222, 5.

team = build(:assignment_team, id: 1)
build(:student, id: 3)
participant1 = build(:participant, id: 1, user_id: 3)
team_user1 = build(:team_user, team_id: 1, user_id: 3)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless assignment to variable - team_user1.

allow(team).to receive(:users).with(no_args).and_return([user1, user2])
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user1.id, parent_id: team.parent_id).and_return(participant1)
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user2.id, parent_id: team.parent_id).and_return(participant2)
signupteam = build(:signed_up_team, id: 1, team_id: team.id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless assignment to variable - signupteam.

it "sets the directory for the team" do
team = build(:assignment_team, id: 1, parent_id: 1,directory_num: -1)
max_num = 0
allow(AssignmentTeam).to receive_message_chain(:where, :order, :first, :directory_num).with(parent_id: team.parent_id).with(:directory_num, :desc).with(no_args).with(no_args).and_return(max_num)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [206/160]

team = build(:assignment_team, id: 1)
build(:student, id: 3)
participant1 = build(:participant, id: 1, user_id: 3)
team_user1 = build(:team_user, team_id: 1, user_id: 3)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

it "provides the topic id" do
assignment = team.assignment
allow(SignUpTopic).to receive(:find_by).with(assignment: assignment).and_return(topic)
allow(SignedUpTeam).to receive_message_chain(:find_by, :try).with(team_id: team.id).with(:topic_id).and_return(topic.id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

assignment = team.assignment
allow(SignUpTopic).to receive(:find_by).with(assignment: assignment).and_return(topic)
allow(SignedUpTeam).to receive_message_chain(:find_by, :try).with(team_id: team.id).with(:topic_id).and_return(topic.id)
expect(team.topic).to eq(topic.id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

describe "#delete" do
it "deletes the team" do
allow(team).to receive(:users).with(no_args).and_return([user1, user2])
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user1.id, parent_id: team.parent_id).and_return(participant1)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

it "deletes the team" do
allow(team).to receive(:users).with(no_args).and_return([user1, user2])
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user1.id, parent_id: team.parent_id).and_return(participant1)
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user2.id, parent_id: team.parent_id).and_return(participant2)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

expect(AssignmentTeam.remove_team_by_id(team.id)).to eq(team)
end
end
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end at 74, 2 is not aligned with describe ".remove_team_by_id" do at 66, 1.

allow(Team).to receive(:export).with([], 1, [], instance_of(AssignmentTeam))
expect(Team).to receive(:export).with([], 1, [], instance_of(AssignmentTeam))
AssignmentTeam.export([], 1, [])
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end at 226, 4 is not aligned with it "redirects to Team.export with a new AssignmentTeam object" do at 222, 5.

team = build(:assignment_team, id: 1)
build(:student, id: 3)
participant1 = build(:participant, id: 1, user_id: 3)
team_user1 = build(:team_user, team_id: 1, user_id: 3)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless assignment to variable - team_user1.

allow(team).to receive(:users).with(no_args).and_return([user1, user2])
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user1.id, parent_id: team.parent_id).and_return(participant1)
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user2.id, parent_id: team.parent_id).and_return(participant2)
signupteam = build(:signed_up_team, id: 1, team_id: team.id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless assignment to variable - signupteam.

it "sets the directory for the team" do
team = build(:assignment_team, id: 1, parent_id: 1,directory_num: -1)
max_num = 0
allow(AssignmentTeam).to receive_message_chain(:where, :order, :first, :directory_num).with(parent_id: team.parent_id).with(:directory_num, :desc).with(no_args).with(no_args).and_return(max_num)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [206/160]

@Winbobob Winbobob self-assigned this Oct 30, 2018
allow(team).to receive(:users).with(no_args).and_return([user1, user2])
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user1.id, parent_id: team.parent_id).and_return(participant1)
allow(AssignmentParticipant).to receive(:find_by).with(user_id: user2.id, parent_id: team.parent_id).and_return(participant2)
signupteam = build(:signed_up_team, id: 1, team_id: team.id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless assignment to variable - signupteam.

end
end

describe "#scores" do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block has too many lines. [26/25]

@Winbobob
Copy link
Member

Hi team,

You did a good job!
I just marked the remaining 3 code climate issue as invalid.

Thanks,
Zhewei

@Winbobob Winbobob merged commit f56a602 into expertiza:master Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants