Skip to content

Commit

Permalink
test inconsistency of readiness when the selectable has been closed
Browse files Browse the repository at this point in the history
  • Loading branch information
HoneyryderChuck committed Nov 10, 2017
1 parent 95de69d commit 75f19d3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/support/selectable_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@
expect(m.readiness).to eq(:rw)
end
end
it "selects as readable if selectable has been closed" do
it "keeps readiness after the selectable has been closed" do
selector.register(readable_subject, :rw)
selector.select(0) do |m|
expect(m.readiness).to eq(:rw)
end
readable_subject.close
selector.select(0) do |m|
expect(m.readiness).to eq(:r)
readable_subject.close
expect(m.readiness).to eq(:rw)
end
end
end

0 comments on commit 75f19d3

Please sign in to comment.