Skip to content

Instantly share code, notes, and snippets.

View KirillKayumov's full-sized avatar
👌

Kirill Kaiumov KirillKayumov

👌
  • UULA Technologies
  • Warsaw, Poland
View GitHub Profile
@KirillKayumov
KirillKayumov / History|-10b0ae2e|entries.json
Last active January 8, 2023 09:49
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/k.kaiumov/projects/advent2022/lib/day9/input_example","entries":[{"id":"XFY6","timestamp":1670588224202},{"id":"Fvqs","timestamp":1670603419918}]}
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)