lk | moves notes, adds backup instructions, and shows asignees of bikes on bike page when they're present

This commit is contained in:
Louis Knapp
2017-05-01 17:14:53 -05:00
parent f656c1af87
commit fa2c2ede08
5 changed files with 32 additions and 0 deletions
@@ -54,6 +54,15 @@ describe BikesController do
expect(assigns(:bike)).to eq(@current_bike)
expect(assigns(:next_bike)).to eq(@next_bike)
end
it "assigns a client if there is one" do
@client = create :client, bike: @current_bike
get :edit, id: @current_bike.id
expect(assigns(:client)).to eq(@client)
end
it "does not assign a client if there is none" do
get :edit, id: @current_bike.id
expect(assigns(:client)).to be_nil
end
end
describe "#update" do