summaryrefslogtreecommitdiffhomepage
path: root/test/dsl_spec.rb
diff options
context:
space:
mode:
authorTom Black <[email protected]>2018-09-28 13:23:43 -0700
committerTom Black <[email protected]>2018-09-28 13:23:43 -0700
commitaecb756b33510378d91d9737930d97a381cc9403 (patch)
tree4787990150f31f1211b987c4c3cd4a766f80e453 /test/dsl_spec.rb
parent9b51a3b4718b082301ff70b706ac53bec8668ac9 (diff)
downloadruby2d-aecb756b33510378d91d9737930d97a381cc9403.tar.gz
ruby2d-aecb756b33510378d91d9737930d97a381cc9403.zip
Style, docs, and consistency
Diffstat (limited to 'test/dsl_spec.rb')
-rw-r--r--test/dsl_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/dsl_spec.rb b/test/dsl_spec.rb
index dd85f77..063abd2 100644
--- a/test/dsl_spec.rb
+++ b/test/dsl_spec.rb
@@ -5,25 +5,25 @@ RSpec.describe Ruby2D::DSL 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"
+ 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
set width: 300
- expect(get :width).to eq 300
- expect(get :height).to eq 480
- expect(get :title).to eq "Ruby 2D"
+ 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
set width: 800, height: 600, title: "Hello tests!"
- expect(get :width).to eq 800
- expect(get :height).to eq 600
- expect(get :title).to eq "Hello tests!"
+ expect(get :width).to eq(800)
+ expect(get :height).to eq(600)
+ expect(get :title).to eq("Hello tests!")
end
end