text: var assert = require('assert');
  var Checker = require('../../../lib/checker');
  var reportAndFix = require('../../lib/assertHelpers').reportAndFix;
  
  describe('rules/require-object-keys-on-new-line', function() {
      var rules = { requireObjectKeysOnNewLine: true };
      var checker;
  
      beforeEach(function() {
          checker = new Checker();
          checker.registerDefaultRules();
          checker.configure(rules);
      });
  
      reportAndFix({
          name: 'object assignment with missing padding',
          rules: rules,
          input: 'var a = {foo: "bar",bar: "baz"}',
          output: 'var a = {foo: "bar",\nbar: "baz"}'
      });
  
      reportAndFix({
          name: 'function argument with missing padding',
          rules: rules,
          input: 'foo({foo: "bar", bar: "baz"})',
          output: 'foo({foo: "bar",\n bar: "baz"})'
      });
  
      it('should not report object with padding', function() {
          assert(checker.checkString('var a = {foo: "bar",\nbar: "baz"}').isEmpty());
      });
  
      it('should not report argument with padding', function() {
          assert(checker.checkString('foo({foo: "bar",\nbar: "baz"})').isEmpty());
      });
  
      it('should not report object with one key', function() {
          assert(checker.checkString('var a = {a: "b"};').isEmpty());
      });
  });
  