Skip to content

Investigate possible test bug occurring around midnight #260

Open
@jamo

Description

@jamo

Investigate possible test bug occurring around midnight

  1. Exercise should be submittable by non-administrators only if the deadline has not passed and the exercise is not hidden and is published
    Failure/Error: Unable to find matching line from backtrace
    expected #<Exercise id: 184, name: "exercise127", created_at: "2015-06-01 21:45:30", updated_at: "2015-06-01 21:45:30", course_id: 202, publish_time: "2015-06-01 21:00:00", gdocs_sheet: "exercise155", hidden: false, returnable_forced: true, checksum: "", solution_visible_after: nil, has_tests: false, deadline_spec: nil, unlock_spec: nil, runtime_params: "[]", valgrind_strategy: nil, code_review_requests_enabled: false, run_tests_locally_action_enabled: true>.submittable_by?(#<User id: 156, login: "user287", password_hash: "bd135f372a1a9fafc1c4d17176f6a3c6920c2172c68dbbfa45...", created_at: "2015-06-01 21:45:30", updated_at: "2015-06-01 21:45:30", salt: "3ba9963223ffd2bce9166570377c40e41e1520b7f7f57f389d...", administrator: false, email: "[email protected]", legitimate_student: true>) to return false, got true
    # /home/tmc/tmc-server/spec/models/exercise_spec.rb:182:in `block (2 levels) in <top (required)>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions