Sha256: 721d5f0c9d64b413db0cadfd85c20f55884219916109c6cb3fd11af2a41952a1

Contents?: true

Size: 333 Bytes

Versions: 3

Compression:

Stored size: 333 Bytes

Contents

require 'rails_helper'

RSpec.describe Newsletter::Engine do
  it "can set table prefix to empty" do
    Newsletter.table_prefix = nil
    conf = Newsletter::Settings.new(
      'spec/support/files/newsletter_empty_table_prefix.yml')
    Newsletter.initialize_with_config(conf)
    expect(Newsletter.table_prefix).to eq ''
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newsletter-3.2.25.1 spec/test_app/spec/models/newsletter/engine_spec.rb
newsletter-3.2.22.0 spec/test_app/spec/models/newsletter/engine_spec.rb
newsletter-3.2.7 spec/test_app/spec/models/newsletter/engine_spec.rb