Skip to content

Commit

Permalink
simple failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Jan 26, 2015
1 parent e943729 commit 5a6b9c9
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import DS from 'ember-data';

export default DS.RESTAdapter.extend({
});
4 changes: 4 additions & 0 deletions app/models/ssh-key.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import DS from 'ember-data';

export default DS.Model.extend({
});
15 changes: 15 additions & 0 deletions tests/unit/adapters/application-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {
moduleFor,
test
} from 'ember-qunit';

moduleFor('adapter:application', 'ApplicationAdapter', {
// Specify the other units that are required for this test.
// needs: ['serializer:foo']
});

// Replace this with your real tests.
test('it exists', function() {
var adapter = this.subject();
ok(adapter);
});
30 changes: 30 additions & 0 deletions tests/unit/models/ssh-key-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import {
moduleForModel,
test
} from 'ember-qunit';
import Ember from 'ember';

moduleForModel('ssh-key', 'SshKey', {
// Specify the other units that are required for this test.
needs: ['adapter:application']
});

test('it exists', function() {
var model = this.subject();
// var store = this.store();
ok(!!model);
});

test('it can be looked up', function() {
var store = this.store();

var sshKey;

Ember.run(function(){
sshKey = store.createRecord('ssh-key');
});

return Ember.run(function(){
return sshKey.save();
});
});

0 comments on commit 5a6b9c9

Please sign in to comment.