diff options
| author | Tom Black <[email protected]> | 2018-09-26 17:21:34 -0700 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2018-09-26 17:21:34 -0700 |
| commit | e2fb9c34d6f56ec833e0451b26a02c304afaf71b (patch) | |
| tree | 35029a30d2d0074ad783926fcd83e6dfe1401a37 /test/dsl_spec.rb | |
| parent | 6351fe4b374000ba78e3a7795f0f05e63cbdbc29 (diff) | |
| download | ruby2d-e2fb9c34d6f56ec833e0451b26a02c304afaf71b.tar.gz ruby2d-e2fb9c34d6f56ec833e0451b26a02c304afaf71b.zip | |
Documentation and style updates
Diffstat (limited to 'test/dsl_spec.rb')
| -rw-r--r-- | test/dsl_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/dsl_spec.rb b/test/dsl_spec.rb index 4337046..dd85f77 100644 --- a/test/dsl_spec.rb +++ b/test/dsl_spec.rb @@ -3,23 +3,23 @@ include Ruby2D::DSL RSpec.describe Ruby2D::DSL do - describe '#get' do - it 'gets the default window attributes' do + describe "#get" do + it "gets the default window attributes" do expect(get :width).to eq 640 expect(get :height).to eq 480 expect(get :title).to eq "Ruby 2D" end end - describe '#set' do - it 'sets a single window attribute' do + describe "#set" do + it "sets a single window attribute" do set width: 300 expect(get :width).to eq 300 expect(get :height).to eq 480 expect(get :title).to eq "Ruby 2D" end - it 'sets multiple window attributes at a time' do + it "sets multiple window attributes at a time" do set width: 800, height: 600, title: "Hello tests!" expect(get :width).to eq 800 expect(get :height).to eq 600 |
