Sha256: 48a4cef07e7bb953e440b32f833554b75b06e2d1506141fa3d7a92cde5a15e0b

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 Bytes

Contents

require 'spec_helper'

describe SimpleSlug do
  describe 'config' do
    it 'has column name' do
      expect(SimpleSlug.slug_column).to eq 'slug'
    end

    it 'has excludes' do
      expect(SimpleSlug.excludes).to include('new', 'edit')
    end

    it 'has max length' do
     expect( SimpleSlug.max_length).to eq 191
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_slug-0.4.5 spec/simple_slug/base_spec.rb
simple_slug-0.4.4 spec/simple_slug/base_spec.rb
simple_slug-0.4.3 spec/simple_slug/base_spec.rb
simple_slug-0.4.2 spec/simple_slug/base_spec.rb
simple_slug-0.4.1 spec/simple_slug/base_spec.rb
simple_slug-0.4.0 spec/simple_slug/base_spec.rb