summaryrefslogtreecommitdiffhomepage
path: root/test/circle_spec.rb
blob: dd49e2c98094e1f7349daee0ca4c533615425395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'ruby2d'

RSpec.describe Ruby2D::Circle do

  describe "#new" do
    it "creates a white circle by default" do
      circle = Circle.new
      expect(circle.color).to   be_a(Ruby2D::Color)
      expect(circle.color.r).to eq(1)
      expect(circle.color.g).to eq(1)
      expect(circle.color.b).to eq(1)
      expect(circle.color.a).to eq(1)
    end
  end

end