Skip to content

Commit

Permalink
Merge pull request #246 from cibernox/update_ember_data
Browse files Browse the repository at this point in the history
Update ember-data
  • Loading branch information
cibernox committed Jan 19, 2016
2 parents 1dd97ed + beba4c4 commit 57720c3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cache:

env:
- EMBER_TRY_SCENARIO=default
- EMBER_TRY_SCENARIO=ember-1.13
# - EMBER_TRY_SCENARIO=ember-1.13
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
Expand Down
3 changes: 1 addition & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"name": "ember-power-select",
"dependencies": {
"ember": "2.3.0",
"ember-cli-shims": "0.0.6",
"ember-cli-shims": "0.1.0",
"ember-cli-test-loader": "0.2.2",
"ember-data": "^2.2.1",
"ember-load-initializers": "0.1.7",
"ember-qunit-notifications": "0.1.0",
"jquery": "^2.1.4",
Expand Down
6 changes: 4 additions & 2 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ module.exports = {
{
name: 'ember-1.13',
dependencies: {
'ember': '1.13.10'
'ember': '1.13.12',
'ember-data': '^2.2.1'
},
resolutions: {
'ember': '1.13.10'
'ember': '1.13.12',
'ember-data': '^2.2.1'
}
},
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"ember-cli-sass": "5.1.0",
"ember-cli-sri": "^2.0.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "2.3.2",
"ember-disable-prototype-extensions": "^1.0.0",
"ember-disable-proxy-controllers": "^1.0.1",
"ember-export-application-global": "^1.0.4",
Expand Down
9 changes: 6 additions & 3 deletions tests/integration/components/power-select/ember-data-test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import Ember from 'ember';
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import { typeInSearch, clickTrigger } from '../../../helpers/ember-power-select';
import mirageInitializer from '../../../../initializers/ember-cli-mirage';
import emberDataInitializer from '../../../../initializers/ember-data';

moduleForComponent('ember-power-select', 'Integration | Component | Ember Power Select (Ember-data integration)', {
integration: true,
beforeEach() {
mirageInitializer.initialize(this.container);
this.store = this.container.lookup('service:store');
let owner = Ember.getOwner(this);
mirageInitializer.initialize(owner);
emberDataInitializer.initialize(owner);
this.store = owner.lookup('service:store');
}
});

Expand Down Expand Up @@ -36,7 +40,6 @@ test('Passing as options of a `store.findAll` works', function(assert) {
test('Passing as options the result of `store.query` works', function(assert) {
let done = assert.async();
server.createList('user', 10);

this.users = this.store.query('user', { foo: 'bar' });
this.render(hbs`
{{#power-select options=users searchField="name" onchange=(action (mut foo)) as |option|}}
Expand Down

0 comments on commit 57720c3

Please sign in to comment.