Skip to content

Commit

Permalink
add specific error for unexpected device writing
Browse files Browse the repository at this point in the history
  • Loading branch information
domgetter committed Aug 31, 2018
1 parent 4a1be43 commit 2428313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/sound/device_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
expect(default_device.queue.length).to eq 0
end
it "cannot be written to directly" do
expect{device.queue << Thread.new {} }.to raise_error
expect{default_device.queue << Thread.new {} }.to raise_error(RuntimeError)
end
end
describe "#write" do
Expand Down

0 comments on commit 2428313

Please sign in to comment.