Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update specs to use _G
  • Loading branch information
leafo committed Dec 31, 2015
1 parent 5cf0a1f commit 44f271f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/color_spec.moon
Expand Up @@ -7,7 +7,7 @@ local ColorStack, hash_string, hash_to_color

describe "color", ->
setup ->
export love = {
_G.love = {
graphics: {
setColor: (r=255,g=255,b=255,a=255) ->
current_color = {r,g,b,a}
Expand Down
4 changes: 2 additions & 2 deletions spec/geometry_spec.moon
Expand Up @@ -5,7 +5,7 @@ local Vec2d, Box

describe "Vec2d", ->
setup ->
export love = { graphics: { } }
_G.love = { graphics: { } }
import Vec2d from require "lovekit.geometry"

teardown restore
Expand Down Expand Up @@ -41,7 +41,7 @@ describe "Vec2d", ->

describe "Box", ->
setup ->
export love = { graphics: { } }
_G.love = { graphics: { } }
import Box from require "lovekit.geometry"

teardown restore
Expand Down
2 changes: 1 addition & 1 deletion spec/input_spec.moon
Expand Up @@ -7,7 +7,7 @@ local Controller

describe "lovekit.input", ->
setup ->
export love = {
_G.love = {
keyboard: {
isDown: (first, ...) ->
return false unless first
Expand Down
2 changes: 1 addition & 1 deletion spec/mixin_spec.moon
Expand Up @@ -6,7 +6,7 @@ local mixin

describe "mixins", ->
setup ->
export love = setmetatable {}, __index: =>
_G.love = setmetatable {}, __index: =>
import mixin from require "lovekit.mixins"

teardown restore
Expand Down
2 changes: 1 addition & 1 deletion spec/support_spec.moon
Expand Up @@ -5,7 +5,7 @@ local lazy_value, lazy

describe "support", ->
setup ->
export love = setmetatable {}, __index: => {}
_G.love = setmetatable {}, __index: => {}
import lazy_value, lazy from require "lovekit.support"

teardown restore
Expand Down

0 comments on commit 44f271f

Please sign in to comment.