Sha256: e8edbb2d75417435616313b05eeecd11b4dd70e6cd61440c6656304c05203057

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
normalizy-1.1.1 spec/normalizy/extensions/filters/slug_spec.rb