Skip to content

Instantly share code, notes, and snippets.

@tinney
Created March 5, 2015 20:51
Show Gist options
  • Save tinney/fe8355b63989047ca382 to your computer and use it in GitHub Desktop.
Save tinney/fe8355b63989047ca382 to your computer and use it in GitHub Desktop.
Given /^I have a rubric$/ do
my.rubric = repository.rubric
end
Given /^I have a locked rubric$/ do
my.rubric = repository.rubric
my.rubric_components << repository.rubric_component
my.rubric_components << repository.rubric_component
my.course = repository.course
my.question = repository.question(type: :essay, rubric: my.rubric)
my.assessment_template = repository.assessment_template
my.assessment = repository.assessment
my.assessment_template_question = repository.assessment_template_question
repository.assessment_response repository.student
my.assessment_template_question.reload
my.rubric.reload.should be_locked
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment