lk | changes way application date is stored in db

This commit is contained in:
Louis Knapp
2015-12-26 15:25:27 -06:00
parent f694d8c238
commit ef63d964d4
8 changed files with 49 additions and 9 deletions
@@ -28,6 +28,7 @@ describe BikesController do
end
end
describe "GET #new" do
it "assigns a log number" do
FactoryGirl.create(:bike, log_number: 3)
@@ -0,0 +1,17 @@
require 'spec_helper'
describe ClientsController do
let(:user){FactoryGirl.create(:user)}
let(:client){FactoryGirl.create(:client)}
before :each do
sign_in user
end
describe "PUT #update" do
it "updates a client with an application date" do
put :update, id: client.id, client: {application_date: "12/21/2015"}
expect(client.reload.application_date.strftime('%m/%d/%Y')).to eq("12/21/2015")
end
end
end