Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed debugging code from test_case_spec

  • Loading branch information...
commit 5684f19e999f5275fb0b6c7c33ad58c11500966d 1 parent 4ec438c
Glenn Vanderburg authored

Showing 1 changed file with 0 additions and 23 deletions. Show diff stats Hide diff stats

  1. +0 23 spec/test_case_spec.rb
23 spec/test_case_spec.rb
... ... @@ -1,28 +1,5 @@
1 1 require File.expand_path(File.dirname(__FILE__) + "/spec_helper")
2 2
3   -describe "debugging mocks" do
4   - before do
5   - @foo = Class.new(RSpec::Unit::TestCase)
6   - @foo_definition_line = __LINE__ - 1
7   - @caller_at_foo_definition = caller
8   - @formatter = RSpec::Core::Formatters::BaseFormatter.new('')
9   - end
10   -
11   - it "should respond to setup_mocks_for_rspec" do
12   - RSpec::Core::ExampleGroup.instance_methods.should include("setup_mocks_for_rspec")
13   - self.class.instance_methods.should include("setup_mocks_for_rspec")
14   - self.class.included_modules.should include(RSpec::Core::MockFrameworkAdapter)
15   - respond_to?(:setup_mocks_for_rspec).should be_true
16   - # should respond_to(:setup_mocks_for_rspec)
17   - end
18   -
19   - it "should verify mock expectations" do
20   - x = "foo"
21   - x.should_receive(:length).once
22   - x.length
23   - end
24   -end
25   -
26 3 describe RSpec::Core::ExampleGroup do
27 4 it "supports using assertions in examples" do
28 5 lambda {assert_equal 1, 1}.should_not raise_error

0 comments on commit 5684f19

Please sign in to comment.
Something went wrong with that request. Please try again.