Sha256: 1ccf49a89fa644dafa5ea5ebe9ac83ba3444ec75e80a88abf7ecd595d939b800
Contents?: true
Size: 766 Bytes
Versions: 1
Compression:
Stored size: 766 Bytes
Contents
# encoding: utf-8 require 'jldrill/spec/StoryMemento' require 'jldrill/spec/SampleQuiz' # Sample quiz functionality. Used as a mixin within a StoryMemento module JLDrill::StoryFunctionality module SampleQuiz def hasDefaultQuiz @sampleQuiz = JLDrill::SampleQuiz.new @mainContext.quiz = @sampleQuiz.defaultQuiz end def sampleQuiz @sampleQuiz end def loadQuiz @sampleQuiz = JLDrill::SampleQuiz.new if @mainContext.quiz.loadFromString("SampleQuiz", @sampleQuiz.resetFile) @mainContext.quiz.drill end end def quiz @mainContext.quiz end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | lib/jldrill/spec/storyFunctionality/SampleQuiz.rb |