 
 describe "ring", ->
   it "returns coordinates for a ring two (2) tiles from center", ->
-    grid = new Grid()
+    grid = new Grid
     result = grid.ring(-1, -1, 2)
     expect(result).toContain({ q:  1, r: -1 })
     expect(result).toContain({ q:  1, r: -2 })


describe "roundCube", ->
  it "calculates the cube coordinates based on the two lowest round() coordinate diffs to get the third and returns the whole set", ->
    grid = new Grid()
    result = grid.roundCube({ x: 0.49, y: 1.95, z: 2.95 })
    expect(result).toEqual({ x: -5, y: 2, z: 3 })

describe "cubeToAxial", ->
  it "extracts (q,r) from (x,z) in (x,y,z)", ->
    grid = new Grid()
    result = grid.cubeToAxial({ x: 3, y: -1, z: -2 })
    expect(result).toEqual({ q: 3, r: -1 })

describe "axialToCube", ->
  it "calculates (x,y,z) from (q,r)", ->
    grid = new Grid()
    result = grid.axialToCube({ q: 3, r: -1 })
    expect(result).toEqual({ x: 3, y: -1, z: -2 })

describe "neighbors", ->
  it "returns neighbor coordinates", ->
    grid = new Grid()
    result = grid.neighbors(0, 0)
    expect(result).toContain({ q:  1, r:  0 })
    expect(result).toContain({ q:  1, r: -1 })


describe "hexagon", ->
  beforeEach ->
    @grid = new Grid

  it "returns coordinates for a solid hexagonal shape stretching two (2) tiles from center", ->
    result = @grid.hexagon(-1, -1, 2, true)
