Skip to content

Commit

Permalink
Report supported backends and current backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Aug 27, 2019
1 parent 830f5a0 commit 5005000
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/nio/selector_spec.rb
Expand Up @@ -16,10 +16,12 @@
end

context "#initialize" do
it "allows explicitly specifying a backend" do
it "allows explicitly specifying a backend" do |example|
backend = described_class.backends.first
selector = described_class.new(backend)
expect(selector.backend).to eq backend

example.reporter.message "Supported backends: #{described_class.backends}"
end

it "raises ArgumentError if given an invalid backend" do
Expand All @@ -32,8 +34,10 @@
end

context "backend" do
it "knows its backend" do
it "knows its backend" do |example|
expect(subject.backend).to be_a Symbol

example.reporter.message "Current backend: #{subject.backend}"
end
end

Expand Down

0 comments on commit 5005000

Please sign in to comment.