mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-01 05:01:04 -05:00
20 lines
562 B
Plaintext
20 lines
562 B
Plaintext
require 'rails_helper'
|
|
|
|
describe Charts::CropsController do
|
|
describe 'GET charts' do
|
|
let(:crop) { FactoryBot.create :crop }
|
|
describe 'sunniness' do
|
|
before { get :sunniness, crop_id: crop.to_param }
|
|
it { expect(response).to be_success }
|
|
end
|
|
describe 'planted_from' do
|
|
before { get :planted_from, crop_id: crop.to_param }
|
|
it { expect(response).to be_success }
|
|
end
|
|
describe 'harvested_for' do
|
|
before { get :harvested_for, crop_id: crop.to_param }
|
|
it { expect(response).to be_success }
|
|
end
|
|
end
|
|
end
|