teatime 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d77e1cef589279813b95afa117218b2f488cb36
4
- data.tar.gz: 6bdbb09d05fa80db3d5102621c8fa3227be8c080
3
+ metadata.gz: 5554350c5f809d9a4bcbd19f9a7a121443927f3d
4
+ data.tar.gz: 1bc3ce707d6a0c7259a8d4b5142d735838ac6bc2
5
5
  SHA512:
6
- metadata.gz: f013de2c15e91f9b17c9998e6151785b6a941c8045cb38fb0a8db7771636bcabd1bbd7730c51472b09721086f61bf48c87724161558b8f441cf7efe7b9527ab5
7
- data.tar.gz: 39e259989a5b68a6df7b13733fa8fe8b5646203b57f22a94ed389a9e934cee7b6e03f190d849eca565b97f6d218b3b7e153d539b3330e52f649ae3bd3222d26e
6
+ metadata.gz: cc4623f589d11828f21e3acb0e3716fe014c8ef4c928b28a969d4cce408fb826e8bb6ca5787ab59702392955d86ddbe78203814a8aa59b7bd7c01c997933ccbb
7
+ data.tar.gz: 11c0f75b37db540c6c384af8afd1fd007854acd6bcc825b3ab34020b904ad326ab0e7e92692073296185996df741a72ae25c1da2039f67c20e6ec947610645d2
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Teatime
2
2
 
3
- TODO: Write a gem description
3
+ At featurefabrik, we are big fans of javascript and testing.
4
+ We also believe, that mocha.js and chai.js are simply awesome.
5
+ To remove the npm dependencies and enable fast and simple testing of
6
+ non-Rails projects with js usage, we built Teatime.
7
+
8
+ For now, this is a proof of concept under heavy development. I just needed a
9
+ quick solution for js-testing with mocha and chai.
4
10
 
5
11
  ## Installation
6
12
 
@@ -8,6 +14,10 @@ Add this line to your application's Gemfile:
8
14
 
9
15
  gem 'teatime'
10
16
 
17
+ or this to your gems .gemspec file:
18
+
19
+ spec.add_development_dependency "teatime"
20
+
11
21
  And then execute:
12
22
 
13
23
  $ bundle
@@ -18,7 +28,24 @@ Or install it yourself as:
18
28
 
19
29
  ## Usage
20
30
 
21
- TODO: Write usage instructions here
31
+ Initialie your tests with rake `teatime:init`. This will create the directory
32
+ `test/javascripts`, a `test_helper.js` file in that directory and a `Teafile`
33
+ with configurable settings in your project root.
34
+
35
+ You can now fire up your testsuite with:
36
+
37
+ rake teatime:serve
38
+
39
+
40
+ It will automatically load all all js files in `lib/**/*.js` and all tests that
41
+ match the pattern `test/javascript/**/*_test.js`.
42
+
43
+ No need to restart the server, if you add any files. All `*_test.js` files are
44
+ evaluated in the regular mocha.js scope, just use `describe(..)` or which
45
+ interface you like. You can set/change the mocha.js or chai.js settings in
46
+ `test_helper.js`.
47
+
48
+ Happy testing :)
22
49
 
23
50
  ## Contributing
24
51
 
@@ -1,3 +1,3 @@
1
1
  module Teatime
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  non-Rails projects with js usage, we built Teatime.
17
17
  DESC
18
18
  ).gsub(/^\s*/, '')
19
- spec.homepage = "http://www.featurefabrik.com/"
19
+ spec.homepage = "https://github.com/featurefabrik/teatime"
20
20
  spec.license = "MIT"
21
21
 
22
22
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teatime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakob Holderbaum
@@ -94,7 +94,7 @@ files:
94
94
  - vendor/assets/javascripts/chai.js
95
95
  - vendor/assets/javascripts/mocha.js
96
96
  - vendor/assets/stylesheets/mocha.css
97
- homepage: http://www.featurefabrik.com/
97
+ homepage: https://github.com/featurefabrik/teatime
98
98
  licenses:
99
99
  - MIT
100
100
  metadata: {}