diff options
Diffstat (limited to 'test/window_spec.rb')
| -rw-r--r-- | test/window_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/window_spec.rb b/test/window_spec.rb new file mode 100644 index 0000000..c49b824 --- /dev/null +++ b/test/window_spec.rb @@ -0,0 +1,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 |
