Sha256: d4cc4fd3251629ff5d3fdf57f214d9f71f51ef764c9f1bafeed65201552d20e7

Contents?: true

Size: 363 Bytes

Versions: 11

Compression:

Stored size: 363 Bytes

Contents

require 'rails_helper'

RSpec.describe Book do
  include_context 'books with authors'

  describe 'generates proper slug for first item' do
    subject { book_b_first.to_param }
    it { should eq 'book-b' }
  end
  describe 'generates proper slug for same slug in another scope' do
    subject { book_b_second.to_param }
    it { should eq 'book-b' }
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

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