Sha256: 5b6975faeb83b0adcc972a2b07c595bf6d15af0b14d4a004bf12dc9e173cde47

Contents?: true

Size: 362 Bytes

Versions: 4

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe ModelSlug, 'filters:slug' do
  from = 'The Títle'
  to   = 'the-title'

  it { expect(described_class.create(permalink: from).permalink).to eq to }

  it { expect(described_class.create(title: from).slug).to eq to }

  it { expect(described_class.create(title: from).title).to eq from }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
normalizy-1.5.0 spec/normalizy/extensions/filters/slug_spec.rb
normalizy-1.4.0 spec/normalizy/extensions/filters/slug_spec.rb
normalizy-1.3.0 spec/normalizy/extensions/filters/slug_spec.rb
normalizy-1.2.0 spec/normalizy/extensions/filters/slug_spec.rb