summaryrefslogtreecommitdiffhomepage
path: root/test/window_spec.rb
blob: 7aac7aa5e94d86d2a6b4bbd0364e1abe604fa1fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'ruby2d'

RSpec.describe Ruby2D::Window do

  it "returns class values" do
    expect(Window.current).to be_a(Ruby2D::Window)
    expect(Window.width).to eq(640)
    set width: 200
    expect(Window.width).to eq(200)
  end

  it "does not allow screenshots until shown" do
    expect(Window.screenshot).to be false
  end

end