Sha256: 907ba85acfe811466cd61a9d07196a65c1a5e9dff7bad66f72978672c9dbf19f

Contents?: true

Size: 212 Bytes

Versions: 11

Compression:

Stored size: 212 Bytes

Contents

require 'rails_helper'

RSpec.describe Author do
  include_context 'books with authors'

  describe 'generates proper slug' do
    subject { first_author.to_param }
    it { should eq 'first-author' }
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
friendly_id-method_scopes-0.3.7 spec/models/author_spec.rb
friendly_id-method_scopes-0.3.3 spec/models/author_spec.rb
friendly_id-method_scopes-0.3.2 spec/models/author_spec.rb
friendly_id-method_scopes-0.3.1 spec/models/author_spec.rb
friendly_id-method_scopes-0.3.0 spec/models/author_spec.rb
friendly_id-method_scopes-0.2.6 spec/models/author_spec.rb
friendly_id-method_scopes-0.2.5 spec/models/author_spec.rb
friendly_id-method_scopes-0.1.8 spec/models/author_spec.rb
friendly_id-method_scopes-0.1.7 spec/models/author_spec.rb
friendly_id-method_scopes-0.1.6 spec/models/author_spec.rb
friendly_id-method_scopes-0.1.5 spec/models/author_spec.rb