Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove deprecated syntax from label spec
  • Loading branch information
seuros committed May 16, 2014
commit ece5bfc0040d03536c20eea5c584f240abc1035a
12 changes: 3 additions & 9 deletions spec/label_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ def create_preorder_tree(suffix = "", &block)
b = c.parent
a = c.root
a.destroy
Label.exists?(a).should be_false
Label.exists?(b).should be_false
Label.exists?(c).should be_false
Label.exists?(id: [a.id,b.id,c.id]).should be_false
end
end

Expand Down Expand Up @@ -354,9 +352,7 @@ def children_name_and_order
c = Label.new(name: 'c')
b.add_child c
a.destroy
Label.exists?(a).should be_false
Label.exists?(b).should be_false
Label.exists?(c).should be_false
Label.exists?(id: [a.id,b.id,c.id]).should be_false
end

it "properly destroys descendents created with <<" do
Expand All @@ -366,9 +362,7 @@ def children_name_and_order
c = Label.new(name: 'c')
b.children << c
a.destroy
Label.exists?(a).should be_false
Label.exists?(b).should be_false
Label.exists?(c).should be_false
Label.exists?(id: [a.id,b.id,c.id]).should be_false
end
end

Expand Down