Sha256: 90f1f54fa10140826f980292032ad1add128ec2e56490ca1f457596e13e66f78
Contents?: true
Size: 1020 Bytes
Versions: 3
Compression:
Stored size: 1020 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 template_engine" do config = Inky::Configuration.new config.template_engine = :haml expect(config.template_engine).to eq(:haml) end it "can set column_count" do config = Inky::Configuration.new config.column_count = 4 expect(config.column_count).to eq(4) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
inky-rb-1.3.7.5 | spec/configuration_spec.rb |
inky-rb-1.3.7.4 | spec/configuration_spec.rb |
inky-rb-1.3.7.3 | spec/configuration_spec.rb |