diff --git a/test/ng/directive/selectSpec.js b/test/ng/directive/selectSpec.js index 0912c5f3..9ce01704 100644 --- a/test/ng/directive/selectSpec.js +++ b/test/ng/directive/selectSpec.js @@ -987,6 +987,20 @@ describe('select', function() { expect(element.find('option').eq(0).prop('selected')).toBeTruthy(); expect(element.find('option').length).toEqual(2); }); + + + it('should use exact same values as values in scope with one-time bindings', function() { + scope.values = [{name: 'A'}, {name: 'B'}]; + scope.selected = scope.values[0]; + createSelect({ + 'ng-model': 'selected', + 'ng-options': 'value.name for value in ::values' + }); + + browserTrigger(element.find('option').eq(1)); + + expect(scope.selected).toBe(scope.values[1]); + }); });