Sha256: 44a5caa0dec940e126d05306eef0ef64ed9e0baaea966a8a29d16e64ab6f8d24
Contents?: true
Size: 816 Bytes
Versions: 1
Compression:
Stored size: 816 Bytes
Contents
# encoding: utf-8 require 'Context/Bridge' require 'jldrill/contexts/ShowStatisticsContext' require 'jldrill/model/Quiz/Quiz' require 'jldrill/views/test/StatisticsView' module JLDrill describe ShowStatisticsContext::StatisticsView do before(:each) do @context = JLDrill::ShowStatisticsContext.new(Context::Bridge.new(JLDrill::Test)) @context.createViews @view = @context.mainView end it "should be able to update the statistics in the view" do quiz = Quiz.new @view.quiz.should be_nil @view.update(quiz) @view.quiz.should be(quiz) end it "should exit the context when the view is closed" do @context.should_receive(:exit) @view.close end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | spec/jldrill/views/StatisticsView_spec.rb |