Sha256: 954b68a5f01d78878577fd40aab1fd5cc7f79ef3d39df823b82fb5edce29d872

Contents?: true

Size: 912 Bytes

Versions: 7

Compression:

Stored size: 912 Bytes

Contents

describe('An example controller', {
  'maintain a reference to the application': function() {
    value_of(controller.application).should_be(application);
  },
  'maintain a reference to the model': function() {
    value_of(controller.model).should_be(AgentPageTemplate)
  },
  'return the correct batch destroy url': function() {
    value_of(controller.batchDestroyUrl).should_be('/admin/batch_destroy_agent_page_templates.ext_json')
  },
  'return the correct delete confirmation message when deleting 1 item': function() {
    value_of(controller.deleteMessage(1)).should_be('Are you sure you want to delete this Agent Page Template? This cannot be undone')
  },
  'return the correct delete confirmation message when deleting more than one 1 item': function() {
    value_of(controller.deleteMessage(2)).should_be('Are you sure you want to delete these Agent Page Templates? This cannot be undone')
  }
});

Version data entries

7 entries across 6 versions & 1 rubygems

Version Path
extjs-mvc-0.4.0.k test/app/vendor/extjs-mvc/specs-old/controller.js
extjs-mvc-0.4.0.k lib/extjs-mvc/src/specs-old/controller.js
extjs-mvc-0.4.0.f lib/src/specs-old/controller.js
extjs-mvc-0.4.0.e lib/vendor/specs-old/controller.js
extjs-mvc-0.4.0.d lib/vendor/specs-old/controller.js
extjs-mvc-0.4.0.b lib/js/specs-old/controller.js
extjs-mvc-0.4.0.a lib/js/specs-old/controller.js