From 0b67ef5f52416080dcb94d5a2a5a1a7a998a3f3f Mon Sep 17 00:00:00 2001 From: Jonathan Kolyer Date: Sat, 15 Aug 2015 15:03:00 +0000 Subject: [PATCH] fixed test for instruments in musician search --- ruby/spec/jam_ruby/models/musician_search_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruby/spec/jam_ruby/models/musician_search_spec.rb b/ruby/spec/jam_ruby/models/musician_search_spec.rb index 012dbf482..e3ef230a5 100644 --- a/ruby/spec/jam_ruby/models/musician_search_spec.rb +++ b/ruby/spec/jam_ruby/models/musician_search_spec.rb @@ -172,8 +172,8 @@ describe 'Musician Search Model' do end it "gets expected number of users" do - instjson = [{ id: Instrument.first.id, level: 2 }, - { id: Instrument.first(2)[1].id, level: 2 } + instjson = [{ instrument_id: Instrument.first.id, proficiency_level: 2 }, + { instrument_id: Instrument.first(2)[1].id, proficiency_level: 2 } ] search.update_json_value(MusicianSearch::KEY_INSTRUMENTS, instjson) expect(search.do_search.count).to eq(3)