8000 Fix tests. · socketry/async@7e93033 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e93033

Browse files
authored
Fix tests.
1 parent 4536375 commit 7e93033

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

fixtures/a_condition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
condition.wait
3434
end
3535

36-
expect(condition.empty?).not.to be(:empty?)
36+
expect(condition).not.to be(:empty?)
3737

3838
task.stop
3939

test/async/children.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
it "should be empty" do
1414
expect(children).to be(:empty?)
1515
expect(children).to be(:nil?)
16-
expect(children).not.to be(:transients)
16+
expect(children).not.to be(:transients?)
1717
end
1818
end
1919

test/async/list.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def initialize(value)
2525
list.append(Item.new(3))
2626

2727
expect(list.each.map(&:value)).to be == [1, 2, 3]
28+
expect(list.to_s).to be =~ /size=3/
2829
end
2930

3031
it "can't append the same item twice" do

0 commit comments

Comments
 (0)
0