diff options
Diffstat (limited to 'test/dsl_spec.rb')
| -rw-r--r-- | test/dsl_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dsl_spec.rb b/test/dsl_spec.rb index 522b29e..4337046 100644 --- a/test/dsl_spec.rb +++ b/test/dsl_spec.rb @@ -2,7 +2,7 @@ require 'ruby2d' include Ruby2D::DSL RSpec.describe Ruby2D::DSL do - + describe '#get' do it 'gets the default window attributes' do expect(get :width).to eq 640 @@ -10,7 +10,7 @@ RSpec.describe Ruby2D::DSL do expect(get :title).to eq "Ruby 2D" end end - + describe '#set' do it 'sets a single window attribute' do set width: 300 @@ -18,7 +18,7 @@ RSpec.describe Ruby2D::DSL do expect(get :height).to eq 480 expect(get :title).to eq "Ruby 2D" end - + it 'sets multiple window attributes at a time' do set width: 800, height: 600, title: "Hello tests!" expect(get :width).to eq 800 @@ -26,5 +26,5 @@ RSpec.describe Ruby2D::DSL do expect(get :title).to eq "Hello tests!" end end - + end |
