spec/requests/labs_spec.rb in medivo-0.2.10 vs spec/requests/labs_spec.rb in medivo-0.2.11

- old
+ new

@@ -70,20 +70,20 @@ end describe "making appointments" do before do @lab_code = "20060" - @time_id = "11/01/2011|8:30 AM" + @time = Time.parse("2011-11-01 8:30 AM UTC") @user = {first_name: 'dude', last_name: 'man', date_of_birth: '12/28/1980', email_address: 'dudeman@dude.com', phone_number: '4155551212'} - @params = { lab_code: @lab_code, time_id: @time_id, user: @user } + @params = { lab_code: @lab_code, time: @time, user: @user } end let(:path) { Medivo::Engine.routes.url_helpers.make_appointment_labs_path } it "make appointment" do response_body = { confirmation: '123' } - stub(Medivo::Appointment).make(@lab_code, @time_id, hash_including(@user) ) { response_body } + stub(Medivo::Appointment).make(@lab_code, @time, hash_including(@user) ) { response_body } post path, @params response.body.should == response_body.to_json end end end