File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 312312 end . to change { Donation . count } . by ( 1 )
313313 end
314314
315- it "Allows User to create a donation for Purchased Supplies" do
316- select Donation ::SOURCES [ :misc ] , from : "donation_source"
317- expect ( page ) . not_to have_xpath ( "//select[@id='donation_donation_site_id']" )
318- expect ( page ) . not_to have_xpath ( "//select[@id='donation_product_drive_participant_id']" )
319- expect ( page ) . not_to have_xpath ( "//select[@id='donation_manufacturer_id']" )
320- select StorageLocation . first . name , from : "donation_storage_location_id"
321- select Item . alphabetized . first . name , from : "donation_line_items_attributes_0_item_id"
322- fill_in "donation_line_items_attributes_0_quantity" , with : "5"
323-
324- expect do
325- click_button "Save"
326- end . to change { Donation . count } . by ( 1 )
327- end
328-
329315 it "Allows User to create a donation with a Miscellaneous source" do
330316 select Donation ::SOURCES [ :misc ] , from : "donation_source"
331317 expect ( page ) . not_to have_xpath ( "//select[@id='donation_donation_site_id']" )
You can’t perform that action at this time.
0 commit comments