Sha256: 4c2a9fac982c5860acf13b2288ea2c79164fc9575aa49659a917b98d254fc4d8
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
require File.dirname(__FILE__) + '/../../test_helper' module Spec module Runner class ContextTest < Test::Unit::TestCase def setup @listener = Api::Mock.new "listener" @context = Context.new("context") {} end def test_should_add_itself_to_listener_on_run @listener.should_receive(:add_context).with "context" @context.run(@listener) @listener.__verify end def test_should_add_itself_to_listener_on_run_docs @listener.should_receive(:add_context).with "context" @context.run_docs(@listener) @listener.__verify end def test_should_execute_setup_from_inherited_context end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-0.5.0 | test/spec/runner/context_test.rb |