Skip to content

Commit

Permalink
wrap config spec full_backtrace example in around that restoress the …
Browse files Browse the repository at this point in the history
…original backtrace patters (why, oh why is this necessary?)
  • Loading branch information
dchelimsky committed Jun 1, 2010
1 parent bb14950 commit bda0844
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions spec/rspec/core/configuration_spec.rb
Expand Up @@ -217,6 +217,13 @@ def that_thing
end

describe "full_backtrace=" do
around do |example|
# TODO - figure out why in the world this is necessary to
# avoid bleed into other specs.
backtrace_clean_patterns = config.backtrace_clean_patterns
example.run
config.backtrace_clean_patterns = backtrace_clean_patterns
end
it "clears the backtrace clean patterns" do
config.full_backtrace = true
config.backtrace_clean_patterns.should == []
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/core/resources/drb_example_spec.rb
@@ -1,5 +1,3 @@
p RSpec.configuration.output_stream
p RSpec::Core::Runner.running_in_drb?
describe "DUMMY CONTEXT for 'DrbCommandLine with -c option'" do
it "should be output with green bar" do
true.should be_true
Expand Down

0 comments on commit bda0844

Please sign in to comment.