Skip to content

Commit

Permalink
Fresh start for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ajacksified committed Jun 2, 2014
1 parent 0e88edb commit 8765ca5
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 965 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
language: c

env:
- LUA="Lua 5.1"
- LUA="Lua 5.2"
- LUA="LuaJIT 2.0"
- LUA='Lua 5.1'
- LUA='Lua 5.2'
- LUA='LuaJIT 2.0'

before_install:
- bash .travis_setup.sh

install:
- sudo luarocks make
- sudo luarocks make --server=http://rocks.moonscript.org
- sudo apt-get update -qq
- sudo apt-get install -qq libev-dev
- sudo luarocks install lua-ev scm --server=http://luarocks.org/repositories/rocks-scm/
- sudo luarocks install copas
- sudo luarocks install moonscript

script: busted spec
script: ./bin/busted.lua spec

branches:
except:
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,34 @@ streaming, and TAP-compatible output that allows you to run busted specs
within most CI servers.

```lua
describe("Busted unit testing framework", function()
describe("should be awesome", function()
it("should be easy to use", function()
assert.truthy("Yup.")
describe('Busted unit testing framework', function()
describe('should be awesome', function()
it('should be easy to use', function()
assert.truthy('Yup.')
end)

it("should have lots of features", function()
it('should have lots of features', function()
-- deep check comparisons!
assert.same({ table = "great"}, { table = "great" })
assert.same({ table = 'great'}, { table = 'great' })

-- or check by reference!
assert.is_not.equals({ table = "great"}, { table = "great"})
assert.is_not.equals({ table = 'great'}, { table = 'great'})

assert.falsy(nil)
assert.error(function() error("Wat") end)
assert.error(function() error('Wat') end)
end)

it("should provide some shortcuts to common functions", function()
it('should provide some shortcuts to common functions', function()
assert.unique({{ thing = 1 }, { thing = 2 }, { thing = 3 }})
end)

it("should have mocks and spies for functional tests", function()
local thing = require("thing_module")
spy.spy_on(thing, "greet")
thing.greet("Hi!")
it('should have mocks and spies for functional tests', function()
local thing = require('thing_module')
spy.spy_on(thing, 'greet')
thing.greet('Hi!')

assert.spy(thing.greet).was.called()
assert.spy(thing.greet).was.called_with("Hi!")
assert.spy(thing.greet).was.called_with('Hi!')
end)
end)
end)
Expand Down
24 changes: 0 additions & 24 deletions bin/busted.bat

This file was deleted.

140 changes: 0 additions & 140 deletions bin/busted_bootstrap

This file was deleted.

62 changes: 0 additions & 62 deletions busted-1.11.1-0.rockspec

This file was deleted.

42 changes: 0 additions & 42 deletions src/loop/async_loop_api.md

This file was deleted.

19 changes: 0 additions & 19 deletions src/loop/copas.lua

This file was deleted.

Loading

0 comments on commit 8765ca5

Please sign in to comment.