Permalink
Browse files

removed debugging code from test_case_spec

  • Loading branch information...
1 parent 4ec438c commit 5684f19e999f5275fb0b6c7c33ad58c11500966d @glv committed Sep 13, 2010
Showing with 0 additions and 23 deletions.
  1. +0 −23 spec/test_case_spec.rb
View
23 spec/test_case_spec.rb
@@ -1,28 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + "/spec_helper")
-describe "debugging mocks" do
- before do
- @foo = Class.new(RSpec::Unit::TestCase)
- @foo_definition_line = __LINE__ - 1
- @caller_at_foo_definition = caller
- @formatter = RSpec::Core::Formatters::BaseFormatter.new('')
- end
-
- it "should respond to setup_mocks_for_rspec" do
- RSpec::Core::ExampleGroup.instance_methods.should include("setup_mocks_for_rspec")
- self.class.instance_methods.should include("setup_mocks_for_rspec")
- self.class.included_modules.should include(RSpec::Core::MockFrameworkAdapter)
- respond_to?(:setup_mocks_for_rspec).should be_true
- # should respond_to(:setup_mocks_for_rspec)
- end
-
- it "should verify mock expectations" do
- x = "foo"
- x.should_receive(:length).once
- x.length
- end
-end
-
describe RSpec::Core::ExampleGroup do
it "supports using assertions in examples" do
lambda {assert_equal 1, 1}.should_not raise_error

0 comments on commit 5684f19

Please sign in to comment.