Skip to content

Commit

Permalink
added first draft of test
Browse files Browse the repository at this point in the history
  • Loading branch information
HoneyryderChuck committed Nov 14, 2017
1 parent 6d2534e commit c657068
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/support/selectable_examples.rb
Expand Up @@ -54,4 +54,14 @@
expect(m.readiness).to eq(:rw)
end
end
it "selects as readable if 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)
end
end
end

0 comments on commit c657068

Please sign in to comment.