summaryrefslogtreecommitdiffhomepage
path: root/test/window_spec.rb
blob: 7be4e2b6525d88ebfc504b407ebfb6d02914530e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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

end