Skip to content

zip files that cause grader exceptions #23

@bill-auger

Description

@bill-auger

if the auto-grader is giving errors for your HW5 submission please drag and drop your zip file into a comment below

HusainJaffer, gpincheiraa, weiherj, nbartowski, siderio2 files result in this error:

Running student tests found in features/ spec/:

/home/ubuntu/.rvm/rubies/ruby-2.2.2/bin/ruby -S bundle exec cucumber  --profile default

/home/ubuntu/.rvm/rubies/ruby-2.2.2/bin/ruby -I/home/ubuntu/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.3.2/lib:/home/ubuntu/.rvm/gems/ruby-2.2.2/gems/rspec-support-3.3.0/lib /home/ubuntu/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.3.2/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed

nbartowski and zarak seem to have hit the perennial factory girl issue

nbartowski's file gives

  1) Movie finding movie list with same director as Star Wars should return list of movies with same director
     Failure/Error: @movie = FactoryGirl.create(:movie, :title => 'Star Wars',
     ActiveRecord::RecordNotUnique:
       SQLite3::ConstraintException: UNIQUE constraint failed: movies.id: INSERT INTO "movies" ("title", "rating", "release_date", "director", "id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)

  2) Movie finding movie list with same director as Star Wars should not return movies with a different director
     Failure/Error: @movie = FactoryGirl.create(:movie, :title => 'Star Wars',
     ActiveRecord::RecordNotUnique:
       SQLite3::ConstraintException: UNIQUE constraint failed: movies.id: INSERT INTO "movies" ("title", "rating", "release_date", "director", "id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)

zarak's file gives

FactoryGirl::DuplicateDefinitionError: Factory already registered: movie

i have not investigated any of these yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions