define('dummy/tests/unit/validation-mixin-test', ['ember', 'ember-cli-simple-store/model', 'ember-cli-simple-validation/mixins/validate'], function (Ember, ember_cli_simple_store__model, validate) {

  'use strict';

  var Person = ember_cli_simple_store__model.Model.extend({
    name: ember_cli_simple_store__model.attr()
  });

  var controller,
      container,
      model = Person.create({ name: "x" });

  var FakeController = Ember['default'].Controller.extend(validate.ValidationMixin, {
    nameValidation: validate.validate("model.name"),
    model: model
  });

  module("Unit: Validation Mixin", {
    setup: function () {
      container = new Ember['default'].Container();
      container.register("controller:fake", FakeController);
      container.register("model:person", Person);
      controller = container.lookup("controller:fake");
    },
    teardown: function () {
      Ember['default'].run(container, "destroy");
    }
  });

  test("validation will fire when computed validation value is update", function () {
    equal(controller.get("nameValidation"), true);
    model.set("name", "");
    equal(controller.get("nameValidation"), false);
  });

});