Sha256: d40414d2dd106b6a0118e164f465149c9f785220a0cefbb52f4fd98efa8b0af2
Contents?: true
Size: 977 Bytes
Versions: 8
Compression:
Stored size: 977 Bytes
Contents
require "spec_helper" RSpec.describe "suspenders:stylelint", type: :generator do context "generate" do it "creates .stylelintrc.json" do with_app { generate("suspenders:stylelint") } expect(".stylelintrc.json").to exist_as_a_file end it "adds stylelint to the package.json" do with_app { generate("suspenders:stylelint") } expect("package.json").to match_contents(/devDependencies/) expect("package.json").to match_contents(/stylelint/) end end context "destroy" do it "removes .stylelintrc.json" do with_app do generate("suspenders:stylelint") destroy("suspenders:stylelint") end expect(".stylelintrc.json").not_to exist_as_a_file end it "removes stylelint from package.json" do with_app do generate("suspenders:stylelint") destroy("suspenders:stylelint") end expect("package.json").not_to match_contents(/stylelint/) end end end
Version data entries
8 entries across 8 versions & 1 rubygems