mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-31 12:40:59 -05:00
test that expects a garden name, set to that name
This commit is contained in:
@@ -2,7 +2,7 @@ require 'rails_helper'
|
||||
|
||||
describe Garden do
|
||||
let(:owner) { FactoryBot.create(:member) }
|
||||
let(:garden) { FactoryBot.create(:garden, owner: owner) }
|
||||
let(:garden) { FactoryBot.create(:garden, owner: owner, name: 'Springfield Community Garden') }
|
||||
|
||||
it "should have a slug" do
|
||||
garden.slug.should match(/member\d+-springfield-community-garden/)
|
||||
|
||||
Reference in New Issue
Block a user