spec/async/node_spec.rb in async-1.20.1 vs spec/async/node_spec.rb in async-1.21.0
- old
+ new
@@ -52,10 +52,10 @@
let!(:child) {Async::Node.new(subject)}
it "can print hierarchy to bufffer" do
subject.print_hierarchy(buffer)
- expect(lines.count).to be 2
+ expect(lines.size).to be 2
expect(lines[0]).to be =~ /#<Async::Node:0x\h+>\n/
expect(lines[1]).to be =~ /\t#<Async::Node:0x\h+>\n/
end
end