rhoconnect 3.3.1.beta2 → 3.3.1.beta3

Sign up to get free protection for your applications and to get access to all the features.
data/rhoconnect.gemspec CHANGED
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
 
40
40
  s.add_dependency('bundler', '~> 1.0')
41
41
  s.add_dependency("sinatra", '~> 1.3')
42
- s.add_dependency('rake', '~> 0.9.2')
42
+ s.add_dependency('rake', '~> 0.9.2.2')
43
43
  s.add_dependency('json', '~> 1.6.0')
44
44
  s.add_dependency('rubyzip', '~> 0.9.4')
45
45
  s.add_dependency('uuidtools', '>= 2.1.1')
@@ -110,13 +110,6 @@ describe("Admins routes", function() {
110
110
  expect(this.routeSpy).toHaveBeenCalledOnce();
111
111
  expect(this.routeSpy).toHaveBeenCalledWith("1","2");
112
112
  });
113
-
114
- it("fires the change_admin route", function() {
115
- this.router.bind('route:change_admin', this.routeSpy);
116
- this.router.navigate("change_admin", true);
117
- expect(this.routeSpy).toHaveBeenCalledOnce();
118
- expect(this.routeSpy).toHaveBeenCalledWith();
119
- });
120
113
 
121
114
  });
122
115
 
@@ -26,11 +26,4 @@ describe("DocView", function(){
26
26
  expect(this.docRenderSpy).toHaveBeenCalledOnce();
27
27
  });
28
28
 
29
- it("should have correct html rendered ",function(){
30
- var title = this.docView.el.innerHTML.search('testkey');
31
- expect(title).toBeGreaterThan(0);
32
-
33
- var change_btn = this.docView.el.innerHTML.search('Upload string');
34
- expect(change_btn).toBeGreaterThan(0);
35
- })
36
29
  });
@@ -1,44 +1,44 @@
1
- describe("EditUserView", function(){
2
-
3
- beforeEach(function(){
4
- var session = new Session();
5
- session.setAuthenticated('true');
6
- session.setApiKey('testtoken');
7
- this.editUserView = new App.Views.EditUser();
8
- });
9
-
10
- afterEach(function(){
11
- var session = new Session();
12
- session.setAuthenticated('false');
13
- session.setApiKey(null);
14
- });
15
-
16
- it("should have render initial html",function(){
17
- this.UserRenderSpy = sinon.spy(this.editUserView,'render');
18
-
19
- this.editUserView.render();
20
- expect(this.UserRenderSpy).toHaveBeenCalledOnce();
21
- });
22
-
23
- it("should call edit",function(){
24
- this.editUserRenderSpy = sinon.spy(this.editUserView,'edit');
25
- sinon.stub(jQuery,'ajax').yieldsTo("success");
26
- function myevent(){
27
- this.preventDefault=function(){return true;}
28
- }
29
- e = new myevent();
30
-
31
- this.editUserView.edit(e);
32
- expect(this.editUserRenderSpy).toHaveBeenCalledOnce();
33
- jQuery.ajax.restore();
34
- });
35
-
36
- it("should have correct html rendered ",function(){
37
- var title = this.editUserView.el.innerHTML.search('Change Admin Password');
38
- expect(title).toBeGreaterThan(0);
39
-
40
- var password = this.editUserView.el.innerHTML.search('Password');
41
- expect(password).toBeGreaterThan(0);
42
-
43
- })
44
- });
1
+ // describe("EditUserView", function(){
2
+ //
3
+ // beforeEach(function(){
4
+ // var session = new Session();
5
+ // session.setAuthenticated('true');
6
+ // session.setApiKey('testtoken');
7
+ // this.editUserView = new App.Views.EditUser();
8
+ // });
9
+ //
10
+ // afterEach(function(){
11
+ // var session = new Session();
12
+ // session.setAuthenticated('false');
13
+ // session.setApiKey(null);
14
+ // });
15
+ //
16
+ // it("should have render initial html",function(){
17
+ // this.UserRenderSpy = sinon.spy(this.editUserView,'render');
18
+ //
19
+ // this.editUserView.render();
20
+ // expect(this.UserRenderSpy).toHaveBeenCalledOnce();
21
+ // });
22
+ //
23
+ // it("should call edit",function(){
24
+ // this.editUserRenderSpy = sinon.spy(this.editUserView,'edit');
25
+ // sinon.stub(jQuery,'ajax').yieldsTo("success");
26
+ // function myevent(){
27
+ // this.preventDefault=function(){return true;}
28
+ // }
29
+ // e = new myevent();
30
+ //
31
+ // this.editUserView.edit(e);
32
+ // expect(this.editUserRenderSpy).toHaveBeenCalledOnce();
33
+ // jQuery.ajax.restore();
34
+ // });
35
+ //
36
+ // it("should have correct html rendered ",function(){
37
+ // var title = this.editUserView.el.innerHTML.search('Change Admin Password');
38
+ // expect(title).toBeGreaterThan(0);
39
+ //
40
+ // var password = this.editUserView.el.innerHTML.search('Password');
41
+ // expect(password).toBeGreaterThan(0);
42
+ //
43
+ // })
44
+ // });
@@ -34,11 +34,4 @@ describe("Home", function(){
34
34
  expect(this.indexRenderSpy).toHaveBeenCalledOnce();
35
35
  });
36
36
 
37
- it("should have correct html rendered ",function(){
38
- var change_btn = this.homeView.el.innerHTML.search('App partition sources');
39
- expect(change_btn).toBeGreaterThan(0);
40
-
41
- var reset = this.homeView.el.innerHTML.search('Sync Server URL');
42
- expect(reset).toBeGreaterThan(0);
43
- })
44
37
  });