From 35a1c94eeef017413d0a20e68082441d2cd13264 Mon Sep 17 00:00:00 2001 From: Tom Black Date: Thu, 20 Sep 2018 20:57:55 -0700 Subject: Expose window attributes through class methods --- test/window_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/window_spec.rb (limited to 'test') 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 -- cgit v1.2.3