mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-01 21:21:02 -05:00
12 lines
297 B
Ruby
12 lines
297 B
Ruby
require 'rails_helper'
|
|
|
|
describe SeedsController do
|
|
describe "GET index" do
|
|
let(:owner) { FactoryBot.create(:member) }
|
|
describe "picks up owner from params" do
|
|
before { get :index, params: { owner: owner.slug } }
|
|
it { expect(assigns(:owner)).to eq(owner) }
|
|
end
|
|
end
|
|
end
|