Permalink
Browse files

Refactor insert_and_delete_node_spec for rspec 2.3

  Create the @deterministic tag to aide in running focused tests.
  (44 examples, 0 failures) (Run filtered using {:deterministic=>true})
  • Loading branch information...
hipe committed Dec 15, 2010
1 parent eacbdbe commit e076b3465394491d164f5d1ccf48f985945b22fb
Showing with 9 additions and 9 deletions.
  1. +9 −9 spec/runtime/interval_skip_list/insert_and_delete_node_spec.rb
@@ -22,7 +22,7 @@
describe IntervalSkipList do
attr_reader :list
-
+
before do
@list = IntervalSkipList.new
end
@@ -55,14 +55,14 @@
end
end
- describe " when 1 has been inserted" do
+ describe " when 1 has been inserted", :deterministic => true do
attr_reader :inserted_node, :inserted_nodes
def expected_node_heights
[1]
end
- it_should_behave_like "#next_node_height is deterministic"
+ include NextNodeHeightIsDeterministicSharedContext
before do
@inserted_node = list.insert_node(1)
@@ -115,14 +115,14 @@ def expected_node_heights
end
end
- describe " when 1 and 3 have been inserted in order" do
+ describe " when 1 and 3 have been inserted in order", :deterministic => true do
attr_reader :inserted_nodes
def expected_node_heights
[1, 2]
end
- it_should_behave_like "#next_node_height is deterministic"
+ include NextNodeHeightIsDeterministicSharedContext
before do
@inserted_nodes = []
@@ -212,14 +212,14 @@ def expected_node_heights
end
end
- describe " when 1, 3 and 7 have been inserted in order" do
+ describe " when 1, 3 and 7 have been inserted in order", :deterministic => true do
attr_reader :inserted_nodes
def expected_node_heights
[1, 2, 1]
end
- it_should_behave_like "#next_node_height is deterministic"
+ include NextNodeHeightIsDeterministicSharedContext
before do
@inserted_nodes = []
@@ -309,14 +309,14 @@ def expected_node_heights
end
end
- describe " when 7, 1 and 3 have been inserted in order" do
+ describe " when 7, 1 and 3 have been inserted in order", :deterministic => true do
attr_reader :inserted_nodes
def expected_node_heights
[1, 1, 2]
end
- it_should_behave_like "#next_node_height is deterministic"
+ include NextNodeHeightIsDeterministicSharedContext
before do
@inserted_nodes = []

0 comments on commit e076b34

Please sign in to comment.