Forked from anonymous/gist:a3d11899ed2da170e852
Created
March 27, 2015 07:53
Revisions
-
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ context "HAPPY PATHS" do #... scenario "create a parking lot and check hints count" do @tenant.default_location.parking_lots.first.destroy click_link "Create Parking Lot" fill_in "Name", with: "Parking Lot 4" select "Corporate", from: "Workgroup" click_button "Submit" success_messages ["Parking Lot successfully created."] has_no_error_message expect(page).to have_css("table#parking_lots tr", count: 3) expect(page).to have_css("table#parking_lots tr", text: "Parking Lot 4") expect(@tenant.default_location.parking_lots.find_by_name("Parking Lot 4").hints.count).to eq(4) end # ... end