Sha256: faa9e78d381289c89af5f55264dd5df319c7fc150f0b6c800f16167989a8001e
Contents?: true
Size: 773 Bytes
Versions: 51
Compression:
Stored size: 773 Bytes
Contents
require_relative "spec_helper" describe AutoprefixedRails::Railtie do before do @railtie = AutoprefixedRails::Railtie.instance end context "with config/autoprefixer.yml" do it "works" do expect(@railtie.config).to eq(cascade: false, supports: false, env: "test") end end context "with empty config/autoprefixer.yml" do before do file_path = File.join(Rails.application.root, "config/autoprefixer.yml") allow(File).to receive(:exists?).with(file_path) { true } allow(::YAML).to receive(:load_file).with(file_path) { false } # empty yaml end it "skips empty YAML" do expect { @railtie.config }.not_to raise_error end it "works" do expect(@railtie.config).to eq(env: "test") end end end
Version data entries
51 entries across 36 versions & 2 rubygems