├── README 2.md ├── README.md ├── app ├── adapters │ └── application.js ├── app.js ├── components │ ├── .gitkeep │ ├── blog-post │ │ ├── component.js │ │ └── template.hbs │ └── create-new-post │ │ ├── component.js │ │ └── template.hbs ├── controllers │ └── .gitkeep ├── helpers │ └── .gitkeep ├── index.html ├── models │ ├── .gitkeep │ └── post.js ├── router.js ├── routes │ ├── .gitkeep │ └── index.js ├── styles │ └── app.css └── templates │ ├── application.hbs │ ├── components │ └── .gitkeep │ └── index.hbs ├── bower.json ├── config └── environment.js ├── ember-cli-build.js ├── package.json ├── public ├── crossdomain.xml └── robots.txt ├── testem.json ├── tests ├── .jshintrc ├── helpers │ ├── resolver.js │ └── start-app.js ├── index.html ├── integration │ └── components │ │ ├── blog-post │ │ └── component-test.js │ │ └── create-new-post │ │ └── component-test.js ├── test-helper.js └── unit │ ├── .gitkeep │ ├── models │ └── post-test.js │ └── routes │ └── index-test.js └── vendor └── .gitkeep /README 2.md: -------------------------------------------------------------------------------- 1 | # Ember2-blog 2 | 3 | This README outlines the details of collaborating on this Ember application. 4 | A short introduction of this app could easily go here. 5 | 6 | ## Prerequisites 7 | 8 | You will need the following things properly installed on your computer. 9 | 10 | * [Git](http://git-scm.com/) 11 | * [Node.js](http://nodejs.org/) (with NPM) 12 | * [Bower](http://bower.io/) 13 | * [Ember CLI](http://www.ember-cli.com/) 14 | * [PhantomJS](http://phantomjs.org/) 15 | 16 | ## Installation 17 | 18 | * `git clone ` this repository 19 | * change into the new directory 20 | * `npm install` 21 | * `bower install` 22 | 23 | ## Running / Development 24 | 25 | * `ember server` 26 | * Visit your app at [http://localhost:4200](http://localhost:4200). 27 | 28 | ### Code Generators 29 | 30 | Make use of the many generators for code, try `ember help generate` for more details 31 | 32 | ### Running Tests 33 | 34 | * `ember test` 35 | * `ember test --server` 36 | 37 | ### Building 38 | 39 | * `ember build` (development) 40 | * `ember build --environment production` (production) 41 | 42 | ### Deploying 43 | 44 | Specify what it takes to deploy your app. 45 | 46 | ## Further Reading / Useful Links 47 | 48 | * [ember.js](http://emberjs.com/) 49 | * [ember-cli](http://www.ember-cli.com/) 50 | * Development Browser Extensions 51 | * [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) 52 | * [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) 53 | 54 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ember-Blog-2 2 | A simple EmberJS blog 3 | 4 | Demo: https://ember-blog2.firebaseapp.com/ 5 | -------------------------------------------------------------------------------- /app/adapters/application.js: -------------------------------------------------------------------------------- 1 | import Ember from 'ember'; 2 | import FirebaseAdapter from 'emberfire/adapters/firebase'; 3 | 4 | const { inject } = Ember; 5 | 6 | export default FirebaseAdapter.extend({ 7 | firebase: inject.service(), 8 | }); 9 | -------------------------------------------------------------------------------- /app/app.js: -------------------------------------------------------------------------------- 1 | import Ember from 'ember'; 2 | import Resolver from 'ember/resolver'; 3 | import loadInitializers from 'ember/load-initializers'; 4 | import config from './config/environment'; 5 | 6 | var App; 7 | 8 | Ember.MODEL_FACTORY_INJECTIONS = true; 9 | 10 | App = Ember.Application.extend({ 11 | modulePrefix: config.modulePrefix, 12 | podModulePrefix: config.podModulePrefix, 13 | Resolver: Resolver 14 | }); 15 | 16 | loadInitializers(App, config.modulePrefix); 17 | 18 | export default App; 19 | -------------------------------------------------------------------------------- /app/components/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kidGodzilla/Ember-Blog-2/85ab95704f84475c2f61e1e1c0e60025cb7a470e/app/components/.gitkeep -------------------------------------------------------------------------------- /app/components/blog-post/component.js: -------------------------------------------------------------------------------- 1 | import Ember from 'ember'; 2 | 3 | export default Ember.Component.extend({ 4 | }); 5 | -------------------------------------------------------------------------------- /app/components/blog-post/template.hbs: -------------------------------------------------------------------------------- 1 |
2 |
3 |

{{attrs.post.title}}

4 |

{{attrs.post.text}}

5 | 6 | (Posted on {{attrs.post.createdDate}} 7 | by {{attrs.post.author}}) 8 | 9 |


10 |
11 |
-------------------------------------------------------------------------------- /app/components/create-new-post/component.js: -------------------------------------------------------------------------------- 1 | import Ember from 'ember'; 2 | 3 | export default Ember.Component.extend({ 4 | actions: { 5 | createPost: function (model) { 6 | this.sendAction('createPost', model); 7 | 8 | // Clear each input field 9 | this.set('newPost.title', null); 10 | this.set('newPost.author', null); 11 | this.set('newPost.text', null); 12 | } 13 | } 14 | }); 15 | -------------------------------------------------------------------------------- /app/components/create-new-post/template.hbs: -------------------------------------------------------------------------------- 1 |

Create a New Post

2 | 3 |
4 |

5 | {{input value=newPost.title placeholder="Title"}} 6 | {{input value=newPost.author placeholder="Author"}} 7 |

8 |

9 | {{textarea value=newPost.text placeholder="Content" rows="10" cols="140"}} 10 |

11 |

12 | 13 |

14 |
-------------------------------------------------------------------------------- /app/controllers/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kidGodzilla/Ember-Blog-2/85ab95704f84475c2f61e1e1c0e60025cb7a470e/app/controllers/.gitkeep -------------------------------------------------------------------------------- /app/helpers/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kidGodzilla/Ember-Blog-2/85ab95704f84475c2f61e1e1c0e60025cb7a470e/app/helpers/.gitkeep -------------------------------------------------------------------------------- /app/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ember2Blog 7 | 8 | 9 | 10 | {{content-for 'head'}} 11 | 12 | 13 | 14 | 15 | {{content-for 'head-footer'}} 16 | 17 | 18 | {{content-for 'body'}} 19 | 20 | 21 | 22 | 23 | {{content-for 'body-footer'}} 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/models/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kidGodzilla/Ember-Blog-2/85ab95704f84475c2f61e1e1c0e60025cb7a470e/app/models/.gitkeep -------------------------------------------------------------------------------- /app/models/post.js: -------------------------------------------------------------------------------- 1 | import DS from 'ember-data'; 2 | 3 | export default DS.Model.extend({ 4 | title: DS.attr('string'), 5 | author: DS.attr('string'), 6 | createdDate: DS.attr('date'), 7 | text: DS.attr('string') 8 | }); 9 | -------------------------------------------------------------------------------- /app/router.js: -------------------------------------------------------------------------------- 1 | import Ember from 'ember'; 2 | import config from './config/environment'; 3 | 4 | var Router = Ember.Router.extend({ 5 | location: config.locationType 6 | }); 7 | 8 | Router.map(function() { 9 | }); 10 | 11 | export default Router; 12 | -------------------------------------------------------------------------------- /app/routes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kidGodzilla/Ember-Blog-2/85ab95704f84475c2f61e1e1c0e60025cb7a470e/app/routes/.gitkeep -------------------------------------------------------------------------------- /app/routes/index.js: -------------------------------------------------------------------------------- 1 | import Ember from 'ember'; 2 | 3 | export default Ember.Route.extend({ 4 | model: function () { 5 | return this.store.findAll('post'); 6 | }, 7 | 8 | actions: { 9 | createPost: function (model) { 10 | let post = this.store.createRecord('post', { 11 | title: model.title, 12 | text: model.text, 13 | author: model.author, 14 | createdDate: new Date() 15 | }); 16 | post.save(); 17 | } 18 | } 19 | }); 20 | -------------------------------------------------------------------------------- /app/styles/app.css: -------------------------------------------------------------------------------- 1 | @import url(//fonts.googleapis.com/css?family=Lato:300,400,300italic,400italic); 2 | @import url(//fonts.googleapis.com/css?family=Merriweather:300italic,300,700,700italic); 3 | @import url(//fonts.googleapis.com/css?family=Montserrat:400,700); 4 | 5 | body { 6 | width: 60%; 7 | margin-left: 20%; 8 | font-family: 'Merriweather', serif; 9 | font-weight: 300; 10 | font-size: 18px; 11 | } 12 | p { 13 | line-height: 1.75; 14 | margin-top: 10px; 15 | } 16 | h1, h2, h3, h4, h5, h6 { 17 | font-family: Montserrat, sans-serif; 18 | font-weight: 700; 19 | } 20 | h1 { 21 | font-size: 2.5em; 22 | line-height: 1.5; 23 | margin-left: -2px; 24 | } 25 | h2 { 26 | font-size: 1.75em; 27 | line-height: 1; 28 | margin-bottom: 0; 29 | margin-left: -1px; 30 | } 31 | h3 { 32 | font-family: Lato, sans-serif; 33 | font-size: 1.5em; 34 | line-height: 0; 35 | letter-spacing: 1px; 36 | font-weight: 300; 37 | opacity: 0.6; 38 | margin-left: -2px; 39 | } 40 | h4 { 41 | font-size: 1.25em; 42 | line-height: 1; 43 | margin-bottom: 0; 44 | } 45 | .pull-right { 46 | float: right; 47 | } 48 | a { 49 | color: #c0392b; 50 | text-decoration: none; 51 | } 52 | a:hover { 53 | color: #e74c3c; 54 | } 55 | .menu { 56 | margin-top: 60px; 57 | } 58 | button, .menu a { 59 | font-family: Lato, sans-serif; 60 | border: 1px solid #c0392b; 61 | text-decoration: none; 62 | border-radius: 18px; 63 | padding: 7px 32px; 64 | background: #fff; 65 | color: #c0392b; 66 | } 67 | .menu a { 68 | margin: 10px; 69 | } 70 | button:last-of-type, 71 | .menu a:last-of-type { 72 | margin-right: 0; 73 | } 74 | button:hover, 75 | .menu a:hover{ 76 | border-color: #e74c3c; 77 | color: #fff; 78 | background-color: #e74c3c; 79 | } 80 | textarea:focus, input:focus, button:focus { 81 | outline: 0; 82 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 83 | } 84 | input[type=text], textarea { 85 | width: calc(100% - 5px); 86 | font-size: 0.75em; 87 | padding: 10px; 88 | line-height: 1.5; 89 | margin: 10px 0; 90 | } 91 | textarea { 92 | margin-top: 10px; 93 | } 94 | label { 95 | display: block; 96 | font-family: Montserrat, sans-serif; 97 | font-weight: bold; 98 | font-size: 11px; 99 | line-height: 1; 100 | margin-bottom: 0; 101 | } 102 | 103 | #NewPost input, 104 | #NewPost textarea { 105 | width: calc(100% - 23px); 106 | } 107 | 108 | article > a { 109 | color: #000; 110 | text-decoration: none; 111 | } 112 | 113 | h1 { 114 | display: inline-block; 115 | text-shadow: 116 | 2px 2px 0 #fff, 117 | -2px -1px 0 #fff, 118 | 1px -2px 0 #fff, 119 | -2px 1px 0 #fff, 120 | 1px 1px 0 #fff; 121 | } 122 | h1::first-letter { 123 | margin-left: -3px; 124 | } 125 | h1::before { 126 | content: ''; 127 | width: 100%; 128 | display: inline-block; 129 | border-bottom: 3px solid #c0392b; 130 | /* margin: 0; */ 131 | float: left; 132 | position: relative; 133 | top: calc(1em + 12px); 134 | z-index: -1; 135 | } 136 | h1:hover::before { 137 | border-bottom: 3px solid #e74c3c; 138 | } 139 | .mtm3 { 140 | margin-top: -3px; 141 | } 142 | -------------------------------------------------------------------------------- /app/templates/application.hbs: -------------------------------------------------------------------------------- 1 |

Welcome to Ember

2 | 3 | {{outlet}} 4 | -------------------------------------------------------------------------------- /app/templates/components/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kidGodzilla/Ember-Blog-2/85ab95704f84475c2f61e1e1c0e60025cb7a470e/app/templates/components/.gitkeep -------------------------------------------------------------------------------- /app/templates/index.hbs: -------------------------------------------------------------------------------- 1 | {{#each model as |post|}} 2 | {{#blog-post post=post}}{{/blog-post}} 3 | {{/each}} 4 | 5 | {{#create-new-post newPost=model createPost="createPost"}}{{/create-new-post}} -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ember2-blog", 3 | "dependencies": { 4 | "ember": "1.13.7", 5 | "ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3", 6 | "ember-cli-test-loader": "ember-cli-test-loader#0.1.3", 7 | "ember-data": "1.13.8", 8 | "ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5", 9 | "ember-qunit": "0.4.9", 10 | "ember-qunit-notifications": "0.0.7", 11 | "ember-resolver": "~0.1.18", 12 | "jquery": "^1.11.3", 13 | "loader.js": "ember-cli/loader.js#3.2.1", 14 | "qunit": "~1.18.0", 15 | "firebase": "^2.1.0" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /config/environment.js: -------------------------------------------------------------------------------- 1 | /* jshint node: true */ 2 | 3 | module.exports = function(environment) { 4 | var ENV = { 5 | modulePrefix: 'ember2-blog', 6 | environment: environment, 7 | contentSecurityPolicy: { 'connect-src': "'self' https://auth.firebase.com wss://*.firebaseio.com" }, 8 | firebase: 'https://ember-blog2.firebaseio.com/', 9 | baseURL: '/', 10 | locationType: 'auto', 11 | EmberENV: { 12 | FEATURES: { 13 | // Here you can enable experimental features on an ember canary build 14 | // e.g. 'with-controller': true 15 | } 16 | }, 17 | 18 | APP: { 19 | // Here you can pass flags/options to your application instance 20 | // when it is created 21 | } 22 | }; 23 | 24 | if (environment === 'development') { 25 | // ENV.APP.LOG_RESOLVER = true; 26 | // ENV.APP.LOG_ACTIVE_GENERATION = true; 27 | // ENV.APP.LOG_TRANSITIONS = true; 28 | // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; 29 | // ENV.APP.LOG_VIEW_LOOKUPS = true; 30 | } 31 | 32 | if (environment === 'test') { 33 | // Testem prefers this... 34 | ENV.baseURL = '/'; 35 | ENV.locationType = 'none'; 36 | 37 | // keep test console output quieter 38 | ENV.APP.LOG_ACTIVE_GENERATION = false; 39 | ENV.APP.LOG_VIEW_LOOKUPS = false; 40 | 41 | ENV.APP.rootElement = '#ember-testing'; 42 | } 43 | 44 | if (environment === 'production') { 45 | 46 | } 47 | 48 | return ENV; 49 | }; 50 | -------------------------------------------------------------------------------- /ember-cli-build.js: -------------------------------------------------------------------------------- 1 | /* global require, module */ 2 | var EmberApp = require('ember-cli/lib/broccoli/ember-app'); 3 | 4 | module.exports = function(defaults) { 5 | var app = new EmberApp(defaults, { 6 | // Add options here 7 | }); 8 | 9 | // Use `app.import` to add additional libraries to the generated 10 | // output files. 11 | // 12 | // If you need to use different assets in different 13 | // environments, specify an object as the first parameter. That 14 | // object's keys should be the environment name and the values 15 | // should be the asset to use in that environment. 16 | // 17 | // If the library that you are including contains AMD or ES6 18 | // modules that you would like to import into your application 19 | // please specify an object with the list of modules as keys 20 | // along with the exports of each module as its value. 21 | 22 | return app.toTree(); 23 | }; 24 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ember2-blog", 3 | "version": "0.0.0", 4 | "description": "Small description for ember2-blog goes here", 5 | "private": true, 6 | "directories": { 7 | "doc": "doc", 8 | "test": "tests" 9 | }, 10 | "scripts": { 11 | "build": "ember build", 12 | "start": "ember server", 13 | "test": "ember test" 14 | }, 15 | "repository": "", 16 | "engines": { 17 | "node": ">= 0.10.0" 18 | }, 19 | "author": "", 20 | "license": "MIT", 21 | "devDependencies": { 22 | "broccoli-asset-rev": "^2.1.2", 23 | "ember-cli": "1.13.8", 24 | "ember-cli-app-version": "0.5.0", 25 | "ember-cli-babel": "^5.1.3", 26 | "ember-cli-content-security-policy": "0.4.0", 27 | "ember-cli-dependency-checker": "^1.0.1", 28 | "ember-cli-htmlbars": "0.7.9", 29 | "ember-cli-htmlbars-inline-precompile": "^0.2.0", 30 | "ember-cli-ic-ajax": "0.2.1", 31 | "ember-cli-inject-live-reload": "^1.3.1", 32 | "ember-cli-qunit": "^1.0.0", 33 | "ember-cli-release": "0.2.3", 34 | "ember-cli-sri": "^1.0.3", 35 | "ember-cli-uglify": "^1.2.0", 36 | "ember-data": "1.13.8", 37 | "ember-disable-proxy-controllers": "^1.0.0", 38 | "ember-export-application-global": "^1.0.3", 39 | "emberfire": "1.6.0" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /public/crossdomain.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # http://www.robotstxt.org 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /testem.json: -------------------------------------------------------------------------------- 1 | { 2 | "framework": "qunit", 3 | "test_page": "tests/index.html?hidepassed", 4 | "disable_watching": true, 5 | "launch_in_ci": [ 6 | "PhantomJS" 7 | ], 8 | "launch_in_dev": [ 9 | "PhantomJS", 10 | "Chrome" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /tests/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "predef": [ 3 | "document", 4 | "window", 5 | "location", 6 | "setTimeout", 7 | "$", 8 | "-Promise", 9 | "define", 10 | "console", 11 | "visit", 12 | "exists", 13 | "fillIn", 14 | "click", 15 | "keyEvent", 16 | "triggerEvent", 17 | "find", 18 | "findWithAssert", 19 | "wait", 20 | "DS", 21 | "andThen", 22 | "currentURL", 23 | "currentPath", 24 | "currentRouteName" 25 | ], 26 | "node": false, 27 | "browser": false, 28 | "boss": true, 29 | "curly": true, 30 | "debug": false, 31 | "devel": false, 32 | "eqeqeq": true, 33 | "evil": true, 34 | "forin": false, 35 | "immed": false, 36 | "laxbreak": false, 37 | "newcap": true, 38 | "noarg": true, 39 | "noempty": false, 40 | "nonew": false, 41 | "nomen": false, 42 | "onevar": false, 43 | "plusplus": false, 44 | "regexp": false, 45 | "undef": true, 46 | "sub": true, 47 | "strict": false, 48 | "white": false, 49 | "eqnull": true, 50 | "esnext": true, 51 | "unused": true 52 | } 53 | -------------------------------------------------------------------------------- /tests/helpers/resolver.js: -------------------------------------------------------------------------------- 1 | import Resolver from 'ember/resolver'; 2 | import config from '../../config/environment'; 3 | 4 | var resolver = Resolver.create(); 5 | 6 | resolver.namespace = { 7 | modulePrefix: config.modulePrefix, 8 | podModulePrefix: config.podModulePrefix 9 | }; 10 | 11 | export default resolver; 12 | -------------------------------------------------------------------------------- /tests/helpers/start-app.js: -------------------------------------------------------------------------------- 1 | import Ember from 'ember'; 2 | import Application from '../../app'; 3 | import config from '../../config/environment'; 4 | 5 | export default function startApp(attrs) { 6 | var application; 7 | 8 | var attributes = Ember.merge({}, config.APP); 9 | attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; 10 | 11 | Ember.run(function() { 12 | application = Application.create(attributes); 13 | application.setupForTesting(); 14 | application.injectTestHelpers(); 15 | }); 16 | 17 | return application; 18 | } 19 | -------------------------------------------------------------------------------- /tests/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ember2Blog Tests 7 | 8 | 9 | 10 | {{content-for 'head'}} 11 | {{content-for 'test-head'}} 12 | 13 | 14 | 15 | 16 | 17 | {{content-for 'head-footer'}} 18 | {{content-for 'test-head-footer'}} 19 | 20 | 21 | 22 | {{content-for 'body'}} 23 | {{content-for 'test-body'}} 24 | 25 | 26 | 27 | 28 | 29 | 30 | {{content-for 'body-footer'}} 31 | {{content-for 'test-body-footer'}} 32 | 33 | 34 | -------------------------------------------------------------------------------- /tests/integration/components/blog-post/component-test.js: -------------------------------------------------------------------------------- 1 | import { moduleForComponent, test } from 'ember-qunit'; 2 | import hbs from 'htmlbars-inline-precompile'; 3 | 4 | moduleForComponent('blog-post', 'Integration | Component | blog post', { 5 | integration: true 6 | }); 7 | 8 | test('it renders', function(assert) { 9 | assert.expect(2); 10 | 11 | // Set any properties with this.set('myProperty', 'value'); 12 | // Handle any actions with this.on('myAction', function(val) { ... }); 13 | 14 | this.render(hbs`{{blog-post}}`); 15 | 16 | assert.equal(this.$().text().trim(), ''); 17 | 18 | // Template block usage: 19 | this.render(hbs` 20 | {{#blog-post}} 21 | template block text 22 | {{/blog-post}} 23 | `); 24 | 25 | assert.equal(this.$().text().trim(), 'template block text'); 26 | }); 27 | -------------------------------------------------------------------------------- /tests/integration/components/create-new-post/component-test.js: -------------------------------------------------------------------------------- 1 | import { moduleForComponent, test } from 'ember-qunit'; 2 | import hbs from 'htmlbars-inline-precompile'; 3 | 4 | moduleForComponent('create-new-post', 'Integration | Component | create new post', { 5 | integration: true 6 | }); 7 | 8 | test('it renders', function(assert) { 9 | assert.expect(2); 10 | 11 | // Set any properties with this.set('myProperty', 'value'); 12 | // Handle any actions with this.on('myAction', function(val) { ... }); 13 | 14 | this.render(hbs`{{create-new-post}}`); 15 | 16 | assert.equal(this.$().text().trim(), ''); 17 | 18 | // Template block usage: 19 | this.render(hbs` 20 | {{#create-new-post}} 21 | template block text 22 | {{/create-new-post}} 23 | `); 24 | 25 | assert.equal(this.$().text().trim(), 'template block text'); 26 | }); 27 | -------------------------------------------------------------------------------- /tests/test-helper.js: -------------------------------------------------------------------------------- 1 | import resolver from './helpers/resolver'; 2 | import { 3 | setResolver 4 | } from 'ember-qunit'; 5 | 6 | setResolver(resolver); 7 | -------------------------------------------------------------------------------- /tests/unit/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kidGodzilla/Ember-Blog-2/85ab95704f84475c2f61e1e1c0e60025cb7a470e/tests/unit/.gitkeep -------------------------------------------------------------------------------- /tests/unit/models/post-test.js: -------------------------------------------------------------------------------- 1 | import { moduleForModel, test } from 'ember-qunit'; 2 | 3 | moduleForModel('post', 'Unit | Model | post', { 4 | // Specify the other units that are required for this test. 5 | needs: [] 6 | }); 7 | 8 | test('it exists', function(assert) { 9 | var model = this.subject(); 10 | // var store = this.store(); 11 | assert.ok(!!model); 12 | }); 13 | -------------------------------------------------------------------------------- /tests/unit/routes/index-test.js: -------------------------------------------------------------------------------- 1 | import { moduleFor, test } from 'ember-qunit'; 2 | 3 | moduleFor('route:index', 'Unit | Route | index', { 4 | // Specify the other units that are required for this test. 5 | // needs: ['controller:foo'] 6 | }); 7 | 8 | test('it exists', function(assert) { 9 | var route = this.subject(); 10 | assert.ok(route); 11 | }); 12 | -------------------------------------------------------------------------------- /vendor/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kidGodzilla/Ember-Blog-2/85ab95704f84475c2f61e1e1c0e60025cb7a470e/vendor/.gitkeep --------------------------------------------------------------------------------