Skip to content

Commit 0a15959

Browse files
author
Nick Hwang
committed
Add example and allow all ruby files as spec file
1 parent b9f9c44 commit 0a15959

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

examples/mocha.coffee

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Mocha
2+
{ expect } = require('chai')
3+
4+
describe 'Test', ->
5+
hello = 'world'
6+
lorem = 'ipsum'
7+
8+
it 'should have correct value for hello', ->
9+
expect(hello).to.eql 'world'
10+
11+
it 'should have correct value for lorem', ->
12+
expect(lorem).to.eql 'ipsum'

examples/rspec.rb

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# RSpec
2+
describe 'Test' do
3+
hello = 'world'
4+
lorem = 'ipsum'
5+
6+
it 'should have correct value for hello' do
7+
expect(hello).to eql 'world'
8+
end
9+
it 'should have correct value for lorem' do
10+
expect(lorem).to eql 'ipsum'
11+
end
12+
end

0 commit comments

Comments
 (0)