From b0cda5ff7f5340e00379ca56d74a1af4d46872b2 Mon Sep 17 00:00:00 2001 From: Andy Duss Date: Mon, 9 Oct 2017 14:26:20 -0700 Subject: [PATCH] Heeeelp me --- docs/TODO.md | 2 +- spec/controllers/batches_controller_spec.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/TODO.md b/docs/TODO.md index eeb6529..a6da242 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -6,7 +6,7 @@ * Add PM to equipment * Factor out `check_for_cancel` * Multiple pipets per batch -* Receiving page +* Receiving page, send email on recepit of sample ## Completed * ~~Fix update batch (enter results) redirect back to batch#show~~ diff --git a/spec/controllers/batches_controller_spec.rb b/spec/controllers/batches_controller_spec.rb index f2f9d24..09d27c2 100644 --- a/spec/controllers/batches_controller_spec.rb +++ b/spec/controllers/batches_controller_spec.rb @@ -66,9 +66,8 @@ sign_in(FactoryGirl.create(:analyst)) end it 'sets available methods' do - # @batch2 = FactoryGirl.create(:batch, tests: [FactoryGirl.create(:batched_test)]) get :new - expect(assigns(:available_methods)).to eql([[@batch.test_method.name, @batch.test_method.id]]) + expect(assigns(:available_methods)).to eql([[@batch.test_method.name, @batch.test_method_id]]) end it 'sets batch' it 'builds tests'