mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 09:43:24 -04:00
20 lines
424 B
Ruby
20 lines
424 B
Ruby
require 'rails_helper'
|
|
|
|
describe "crops/edit" do
|
|
before(:each) do
|
|
controller.stub(:current_user) do
|
|
FactoryBot.create(:crop_wrangling_member)
|
|
end
|
|
@crop = FactoryBot.create(:maize)
|
|
3.times do
|
|
@crop.scientific_names.build
|
|
end
|
|
assign(:crop, @crop)
|
|
render
|
|
end
|
|
|
|
it "shows the creator" do
|
|
rendered.should have_content "Added by #{@crop.creator} less than a minute ago."
|
|
end
|
|
end
|