summaryrefslogtreecommitdiffhomepage
path: root/test/color_spec.rb
diff options
context:
space:
mode:
authorlstrzebinczyk <[email protected]>2017-05-27 20:56:35 +0200
committerTom Black <[email protected]>2017-06-03 20:30:43 -0400
commit3a694ffebcff71305d79c6e8c15246d671ce3888 (patch)
tree0c5ea151fa8ad76aa2e4feb447d6fe9efef1c409 /test/color_spec.rb
parent65187cd5126227778146ec33c2857a391fbab620 (diff)
downloadruby2d-3a694ffebcff71305d79c6e8c15246d671ce3888.tar.gz
ruby2d-3a694ffebcff71305d79c6e8c15246d671ce3888.zip
Use named arguments (#65)
Diffstat (limited to 'test/color_spec.rb')
-rw-r--r--test/color_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/color_spec.rb b/test/color_spec.rb
index 299f403..76ebe24 100644
--- a/test/color_spec.rb
+++ b/test/color_spec.rb
@@ -36,7 +36,7 @@ RSpec.describe Ruby2D::Color do
it 'sets and returns the opacity' do
s1 = Square.new
s1.opacity = 0.5
- s2 = Square.new(0, 0, 0, ['red', 'green', 'blue', 'yellow'])
+ s2 = Square.new(color: ['red', 'green', 'blue', 'yellow'])
s2.opacity = 0.7
expect(s1.opacity).to eq 0.5
expect(s2.opacity).to eq 0.7