From c4d04adb775bd11597ebcd0046764d1fa1451752 Mon Sep 17 00:00:00 2001 From: Jonathan Kolyer Date: Sun, 12 Jan 2014 22:23:18 -0600 Subject: [PATCH] vrfs988: fixed broken search test --- ruby/spec/jam_ruby/models/search_spec.rb | 30 ++++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ruby/spec/jam_ruby/models/search_spec.rb b/ruby/spec/jam_ruby/models/search_spec.rb index 65b658269..1f6689f45 100644 --- a/ruby/spec/jam_ruby/models/search_spec.rb +++ b/ruby/spec/jam_ruby/models/search_spec.rb @@ -13,24 +13,24 @@ describe Search do end def assert_peachy_data - search = Search.search('peach') + search = Search.musician_search('peach') + search.results.length.should == 1 + obj = search.results[0] + obj.should be_a_kind_of User + obj.id.should == @user.id - search.recordings.length.should == 0 - search.bands.length.should == 1 - search.musicians.length.should == 1 - search.fans.length.should == 1 + search = Search.fan_search('peach') + search.results.length.should == 1 + obj = search.results[0] + obj.should be_a_kind_of User + obj.id.should == @fan.id - musician = search.musicians[0] - musician.should be_a_kind_of User - musician.id.should == @user.id + search = Search.band_search('peach') + search.results.length.should == 1 + obj = search.results[0] + obj.should be_a_kind_of Band + obj.id.should == @band.id - band = search.bands[0] - band.should be_a_kind_of Band - band.id.should == @band.id - - fan = search.fans[0] - fan.should be_a_kind_of User - fan.id.should == @fan.id end it "search for band & musician " do