picky-client 4.0.9 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/javascripts/spec_helper.js +38 -0
- metadata +7 -6
@@ -0,0 +1,38 @@
|
|
1
|
+
// This file defines global helper functions for specs
|
2
|
+
//
|
3
|
+
// js specs are intended to be run with the mozilla js standalone lib:
|
4
|
+
// http://www.ossp.org/pkg/lib/js/
|
5
|
+
//
|
6
|
+
// Output is intended to be used in a html wrapper, as in TextMate.
|
7
|
+
|
8
|
+
// The tester function.
|
9
|
+
//
|
10
|
+
it = function(should, callback) {
|
11
|
+
var result = callback();
|
12
|
+
if (result) {
|
13
|
+
print('.');
|
14
|
+
} else {
|
15
|
+
print('F - was not ' + should + ' : ' + callback);
|
16
|
+
};
|
17
|
+
};
|
18
|
+
|
19
|
+
// For defining a context.
|
20
|
+
//
|
21
|
+
context = function(description, setup, specs, breakdown) {
|
22
|
+
var old_description = this.context_description;
|
23
|
+
var pre_description = old_description ? old_description + ' ' : '';
|
24
|
+
|
25
|
+
// framework setup
|
26
|
+
this.context_description = pre_description + description; // sets the description on the global object
|
27
|
+
|
28
|
+
if (setup) { setup(); };
|
29
|
+
specs();
|
30
|
+
if (breakdown) { breakdown(); };
|
31
|
+
|
32
|
+
// framework breakdown
|
33
|
+
this.context_description = old_description;
|
34
|
+
};
|
35
|
+
|
36
|
+
// Alias describe to context.
|
37
|
+
//
|
38
|
+
describe = context;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: picky-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yajl-ruby
|
16
|
-
requirement: &
|
16
|
+
requirement: &70246645445380 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.7.8
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70246645445380
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activesupport
|
27
|
-
requirement: &
|
27
|
+
requirement: &70246645444880 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 3.0.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70246645444880
|
36
36
|
description: Picky Client
|
37
37
|
email: florian.hanke+picky-client@gmail.com
|
38
38
|
executables: []
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- javascripts/history.min.js
|
60
60
|
- javascripts/jquery-1.5.0.min.js
|
61
61
|
- javascripts/picky.min.js
|
62
|
+
- javascripts/spec_helper.js
|
62
63
|
- README.rdoc
|
63
64
|
- spec/picky-client/aux/terminal_spec.rb
|
64
65
|
- spec/picky-client/client/active_record_spec.rb
|