Roughing in failure and success (will revisit)
This commit is contained in:
		
							parent
							
								
									503f24882a
								
							
						
					
					
						commit
						5914360cc6
					
				
					 10 changed files with 53 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								app/pods/users/new/fail/route.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								app/pods/users/new/fail/route.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
import Ember from 'ember';
 | 
			
		||||
 | 
			
		||||
export default Ember.Route.extend({
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										1
									
								
								app/pods/users/new/fail/template.hbs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								app/pods/users/new/fail/template.hbs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
<h3>Failure</h3>
 | 
			
		||||
							
								
								
									
										4
									
								
								app/pods/users/new/success/route.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								app/pods/users/new/success/route.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
import Ember from 'ember';
 | 
			
		||||
 | 
			
		||||
export default Ember.Route.extend({
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										1
									
								
								app/pods/users/new/success/template.hbs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								app/pods/users/new/success/template.hbs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
<h3>Success</h3>
 | 
			
		||||
							
								
								
									
										4
									
								
								app/pods/users/new/verify/route.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								app/pods/users/new/verify/route.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
import Ember from 'ember';
 | 
			
		||||
 | 
			
		||||
export default Ember.Route.extend({
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										1
									
								
								app/pods/users/new/verify/template.hbs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								app/pods/users/new/verify/template.hbs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
{{outlet}}
 | 
			
		||||
| 
						 | 
				
			
			@ -21,7 +21,11 @@ Router.map(function() {
 | 
			
		|||
    this.route('show', { path: ':strain_id' });
 | 
			
		||||
  });
 | 
			
		||||
  this.route('users', function() {
 | 
			
		||||
    this.route('new');
 | 
			
		||||
    this.route('new', function() {
 | 
			
		||||
      this.route('fail');
 | 
			
		||||
      this.route('success');
 | 
			
		||||
      this.route('verify', { path: ':nonce' });
 | 
			
		||||
    });
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										11
									
								
								tests/unit/pods/users/new/fail/route-test.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/unit/pods/users/new/fail/route-test.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,11 @@
 | 
			
		|||
import { moduleFor, test } from 'ember-qunit';
 | 
			
		||||
 | 
			
		||||
moduleFor('route:users/new/fail', 'Unit | Route | users/new/fail', {
 | 
			
		||||
  // Specify the other units that are required for this test.
 | 
			
		||||
  // needs: ['controller:foo']
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('it exists', function(assert) {
 | 
			
		||||
  var route = this.subject();
 | 
			
		||||
  assert.ok(route);
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										11
									
								
								tests/unit/pods/users/new/success/route-test.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/unit/pods/users/new/success/route-test.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,11 @@
 | 
			
		|||
import { moduleFor, test } from 'ember-qunit';
 | 
			
		||||
 | 
			
		||||
moduleFor('route:users/new/success', 'Unit | Route | users/new/success', {
 | 
			
		||||
  // Specify the other units that are required for this test.
 | 
			
		||||
  // needs: ['controller:foo']
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('it exists', function(assert) {
 | 
			
		||||
  var route = this.subject();
 | 
			
		||||
  assert.ok(route);
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										11
									
								
								tests/unit/pods/users/new/verify/route-test.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/unit/pods/users/new/verify/route-test.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,11 @@
 | 
			
		|||
import { moduleFor, test } from 'ember-qunit';
 | 
			
		||||
 | 
			
		||||
moduleFor('route:users/new/verify', 'Unit | Route | users/new/verify', {
 | 
			
		||||
  // Specify the other units that are required for this test.
 | 
			
		||||
  // needs: ['controller:foo']
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('it exists', function(assert) {
 | 
			
		||||
  var route = this.subject();
 | 
			
		||||
  assert.ok(route);
 | 
			
		||||
});
 | 
			
		||||
		Reference in a new issue