summaryrefslogtreecommitdiffhomepage
path: root/test/color_spec.rb
diff options
context:
space:
mode:
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