// LICENSE : MIT
"use strict";
var assert = require("power-assert");
var Config = require("../lib/config/config");
var path = require("path");
describe("Config", function () {
    context("on default", function () {
        it("should has not rules", function () {
            var config = new Config();
            assert(config.rules.length === 0);
            assert(config.rulePaths.length === 0);
        });
    });
    describe("#initWithCLIOptions", function () {
        context("when init with command line options", function () {
            it("should has not rules", function () {
                var config = Config.initWithCLIOptions({});
                assert(config.rules.length === 0);
                assert(config.rulePaths.length === 0);
            });
        });
        context("when specify --config", function () {
            it("should use the config file", function () {
                var config = Config.initWithCLIOptions({
                    config: path.join(__dirname, "fixtures", ".textlintrc")
                });
                assert(config.rules.length > 0);
            });
        });
    });
});
@@ -146,17 +146,17 @@
 scribe(%22
-C
+c
 onfig%22, 
@@ -336,32 +336,511 @@
 .length === 0);%0A
+            assert(Object.keys(config.rulesConfig).length === 0);%0A            assert(config.rulePaths.length === 0);%0A        %7D);%0A    %7D);%0A    context(%22when set %60configFile%60%22, function () %7B%0A        it(%22should has config.rules%22, function () %7B%0A            var config = new Config(%7B%0A                configFile: path.join(__dirname, %22fixtures%22, %22.textlintrc%22)%0A            %7D);%0A            assert(config.rules.length %3E 0);%0A            assert(Object.keys(config.rulesConfig).length %3E 0);%0A
             asse
@@ -876,33 +876,32 @@
 = 0);%0A        %7D)
-;
 %0A    %7D);%0A    des

add test for `rulesConfig`