diff options
| author | Tom Black <[email protected]> | 2018-09-26 17:21:34 -0700 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2018-09-26 17:21:34 -0700 |
| commit | e2fb9c34d6f56ec833e0451b26a02c304afaf71b (patch) | |
| tree | 35029a30d2d0074ad783926fcd83e6dfe1401a37 /test/events_spec.rb | |
| parent | 6351fe4b374000ba78e3a7795f0f05e63cbdbc29 (diff) | |
| download | ruby2d-e2fb9c34d6f56ec833e0451b26a02c304afaf71b.tar.gz ruby2d-e2fb9c34d6f56ec833e0451b26a02c304afaf71b.zip | |
Documentation and style updates
Diffstat (limited to 'test/events_spec.rb')
| -rw-r--r-- | test/events_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/events_spec.rb b/test/events_spec.rb index a5fa279..ab07209 100644 --- a/test/events_spec.rb +++ b/test/events_spec.rb @@ -1,7 +1,8 @@ require 'ruby2d' -RSpec.describe Window do - describe 'on :bad_event' do +RSpec.describe Ruby2D::Window do + + describe "on :bad_event" do it "raises exception if a bad event type is given" do window = Ruby2D::Window.new expect { window.on(:bad_event) }.to raise_error(Ruby2D::Error) @@ -130,4 +131,5 @@ RSpec.describe Window do end end end + end |
