Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

simplify spec for #reset

- See 5c73b8c
  • Loading branch information...
commit 8ecae7d2ef8835346343e141443dbc6d0856e02f 1 parent 5c73b8c
@dchelimsky dchelimsky authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 spec/rspec/core/world_spec.rb
View
7 spec/rspec/core/world_spec.rb
@@ -10,14 +10,9 @@ module RSpec::Core
let(:world) { RSpec::Core::World.new(configuration) }
describe '#reset' do
- before do
+ it 'clears #example_groups and #shared_example_groups' do
world.example_groups << :example_group
world.shared_example_groups[:shared] = :example_group
- end
-
- it 'clears #example_groups and #shared_example_groups' do
- world.example_groups.should_not be_empty
- world.shared_example_groups.should_not be_empty
world.reset
world.example_groups.should be_empty
world.shared_example_groups.should be_empty
Please sign in to comment.
Something went wrong with that request. Please try again.