Files
manyfold/spec/models/collection_spec.rb
T

11 lines
258 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
require "rails_helper"
RSpec.describe Collection do
it_behaves_like "Followable"
it "automatically generates a slug from the name" do
collection = create(:collection, name: "Spın̈al Tap")
expect(collection.slug).to eq "spin-al-tap"
end
end