Sha256: cc41c14305dcf27dd21c69c39b13f25dc384082441e7b867e40deb5151fb7183

Contents?: true

Size: 722 Bytes

Versions: 1

Compression:

Stored size: 722 Bytes

Contents

# encoding: utf-8
require 'jldrill/spec/StoryMemento'
require 'jldrill/spec/SampleQuiz'
require 'jldrill/model/Quiz/Strategy'
require 'jldrill/model/Quiz/Schedule'
require 'jldrill/model/Quiz/Statistics'

module JLDrill::KeepsStatistics
	Story = JLDrill::StoryMemento.new("JLDrill Keeps Statistics Story")

	def Story.setup(type)
		super(type)
		@sample = JLDrill::SampleQuiz.new
		@mainContext.quiz = @sample.resetQuiz
	end

	describe Story.stepName("Measures the amount of time to learn an item") do
		before(:each) do
			Story.setup(JLDrill)
			Story.start
			quiz.options.promoteThresh = 1
			newSet.length.should_not eql(0)
			newSet[0].should_not be_nil
		end

		after(:each) do
			Story.shutdown
		end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.6.0.1 spec/jldrill/stories/KeepsStatistics_story.rb