diff options
| author | Tom Black <[email protected]> | 2019-01-06 00:54:48 -0800 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2019-01-06 00:54:48 -0800 |
| commit | 5f7f348ffece2c80663c0f1a002ea25fb0979076 (patch) | |
| tree | bff8f80067e4e370d0448bedf0cf6f4a39e5ede9 /test | |
| parent | 9d2de68fea9ea8dec9c52b5cf7d2f9fdee5333a4 (diff) | |
| download | ruby2d-5f7f348ffece2c80663c0f1a002ea25fb0979076.tar.gz ruby2d-5f7f348ffece2c80663c0f1a002ea25fb0979076.zip | |
Don't allow screenshots before window is shown
Diffstat (limited to 'test')
| -rw-r--r-- | test/window_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/window_spec.rb b/test/window_spec.rb index 7be4e2b..7aac7aa 100644 --- a/test/window_spec.rb +++ b/test/window_spec.rb @@ -9,4 +9,8 @@ RSpec.describe Ruby2D::Window do expect(Window.width).to eq(200) end + it "does not allow screenshots until shown" do + expect(Window.screenshot).to be false + end + end |
