Skip to content

Commit

Permalink
fix test loading and add 2.2 explicitly as a 2.0 that doesn't have co…
Browse files Browse the repository at this point in the history
…ntextual component support
  • Loading branch information
Stanley Stuart committed Mar 11, 2016
1 parent 95e9d47 commit 2ba64d2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,24 @@ module.exports = {
}
},
{
name: 'ember-2-before-contextual-components',
// ember 2 before contextual components
name: 'ember-2-2',
dependencies: {
"ember": "~2.2.0",
},
resolutions: {
"ember": "~2.2.0"
}
},
{
name: 'ember-2-3',
dependencies: {
"ember": "~2.3.0",
},
resolutions: {
"ember": "~2.3.0"
}
},
{
name: 'ember-release',
dependencies: {
Expand Down
1 change: 1 addition & 0 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<script src="assets/dummy.js"></script>
<script src="testem.js"></script>
<script src="assets/test-loader.js"></script>
<script src="assets/tests.js"></script>

{{content-for 'body-footer'}}
{{content-for 'test-body-footer'}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Ember from 'ember';
const integration = true;

function hasContextualComponents() {
return !Ember.VERSION.match(/^2\.[0-3]/) && !Ember.VERSION.match(/^1/);
return !Ember.VERSION.match(/^2\.[0-2]\./) && !Ember.VERSION.match(/^1/);
}

describeComponent('x-select', 'X-Select - Contextual Component', {integration}, function() {
Expand Down

0 comments on commit 2ba64d2

Please sign in to comment.