summaryrefslogtreecommitdiffhomepage
path: root/test/window_spec.rb
diff options
context:
space:
mode:
authorTom Black <[email protected]>2019-01-06 00:54:48 -0800
committerTom Black <[email protected]>2019-01-06 00:54:48 -0800
commit5f7f348ffece2c80663c0f1a002ea25fb0979076 (patch)
treebff8f80067e4e370d0448bedf0cf6f4a39e5ede9 /test/window_spec.rb
parent9d2de68fea9ea8dec9c52b5cf7d2f9fdee5333a4 (diff)
downloadruby2d-5f7f348ffece2c80663c0f1a002ea25fb0979076.tar.gz
ruby2d-5f7f348ffece2c80663c0f1a002ea25fb0979076.zip
Don't allow screenshots before window is shown
Diffstat (limited to 'test/window_spec.rb')
-rw-r--r--test/window_spec.rb4
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