coolerator.vision 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{coolerator.vision}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Innis"]
@@ -1,5 +1,7 @@
1
1
  (function($) {
2
2
  $.extend(Coolerator, {
3
+ Views : {},
4
+
3
5
  View : function View(classifier) {
4
6
  this.classifier = classifier;
5
7
 
@@ -22,6 +24,8 @@
22
24
  }
23
25
  }
24
26
  });
27
+
28
+ Coolerator.Views[classifier] = this;
25
29
  }
26
30
  });
27
31
 
@@ -1,9 +1,22 @@
1
1
  //= require <support/spec_helper>
2
2
 
3
3
  Screw.Unit(function(c) { with(c) {
4
+ describe("Coolerator.Views", function() {
5
+ it("is added to the Coolerator namespace", function() {
6
+ expect(Coolerator.Views).to_not(be_undefined);
7
+ });
8
+
9
+ describe("when creating a Coolerator.View", function() {
10
+ it("the View is added to the collection", function() {
11
+ var view = new Coolerator.View('oh, behave!');
12
+ expect(Coolerator.Views['oh, behave!']).to(equal, view);
13
+ });
14
+ });
15
+ });
16
+
4
17
  describe("Coolerator.View", function() {
5
18
  it("is added to the Coolerator namespace", function() {
6
- expect(typeof Coolerator.View).to(equal, 'function');
19
+ expect(Coolerator.View).to_not(be_undefined);
7
20
  });
8
21
 
9
22
  describe("collection", function() {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coolerator.vision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Innis