Sha256: 3c601a5021d3e6ad598b53c6fdc43a32e5fabee56d278cc6f57eb1edc255e4f9

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

require 'spec_helper'

describe SimpleSlug do
  context 'defaults' do
    it 'slug column' do
      SimpleSlug.slug_column.should == 'slug'
    end

    it 'excludes' do
      SimpleSlug.excludes.should include('new', 'edit')
    end

    it 'exclude regexps' do
      SimpleSlug.exclude_regexp.should == /\A\d+\z/
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_slug-0.1.0 spec/simple_slug/base_spec.rb
simple_slug-0.0.1 spec/simple_slug/base_spec.rb