Sha256: cf13c40a99742b95e249f99beabb6371e73cb5e6275ca848791a4eddc7ef9340
Contents?: true
Size: 856 Bytes
Versions: 2
Compression:
Stored size: 856 Bytes
Contents
require 'spec_helper' RSpec.describe "Configuration" do around do |spec| Inky.configure do |config| old = config.template_engine spec.run config.template_engine = old end end it "default value is :erb" do Inky::Configuration.new.template_engine = :erb end describe "#configuration=" do it "can set value" do config = Inky::Configuration.new config.template_engine = :haml expect(config.template_engine).to eq(:haml) end end describe "#configuration=" do before do Inky.configure do |config| config.template_engine = :haml end end it "returns :haml as configured template_engine" do template_engine = Inky.configuration.template_engine expect(template_engine).to be_a(Symbol) expect(template_engine).to eq(:haml) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inky-rb-1.3.7.2 | spec/configuration_spec.rb |
inky-rb-1.3.7.1 | spec/configuration_spec.rb |