* VRFS-72 merged
This commit is contained in:
parent
00bd6e4569
commit
a179e5b0f0
|
|
@ -5,7 +5,7 @@ child(:bands => :bands) {
|
|||
}
|
||||
|
||||
child(:musicians => :musicians) {
|
||||
attributes :id, :first_name, :last_name :location, :photo_url
|
||||
attributes :id, :first_name, :last_name, :location, :photo_url
|
||||
}
|
||||
|
||||
child(:fans => :fans) {
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ describe "Search API ", :type => :api do
|
|||
it "simple search" do
|
||||
User.delete_search_index # so that the user created before the test and logged in doesn't show up
|
||||
User.create_search_index
|
||||
@musician = FactoryGirl.create(:user, name: "Peach", email: "user@example.com", musician: true)
|
||||
@fan = FactoryGirl.create(:user, name: "Peach Peach", email: "fan@example.com", musician: false)
|
||||
@musician = FactoryGirl.create(:user, first_name: "Peach", last_name: "Nothing", name: "peach1", email: "user@example.com", musician: true)
|
||||
@fan = FactoryGirl.create(:user, first_name: "Peach Peach", last_name: "Grovery", name: "peach2", email: "fan@example.com", musician: false)
|
||||
@band = Band.save(name: "Peach pit", website: "www.bands.com", biography: "zomg we rock")
|
||||
@band2 = Band.save(name: "Peach", website: "www.bands2.com", biography: "zomg we rock")
|
||||
User.search_index.refresh
|
||||
|
|
|
|||
Loading…
Reference in New Issue