mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | moves notes, adds backup instructions, and shows asignees of bikes on bike page when they're present
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user