Skip to content

Instantly share code, notes, and snippets.

View manavortex's full-sized avatar

manavortex manavortex

View GitHub Profile
@manavortex
manavortex / package.bat
Last active June 11, 2019 11:32 — forked from haggen/package.bat
Package your ESO add-on ready for distribution.
:: Package your ESO add-on ready for distribution.
:: Version 1.3 Sat, 14 Nov 2015 22:36:23 +0000
@echo off
setlocal enableextensions enabledelayedexpansion
REM set to location where you want this zipped. Leave it empty if you want to zip to current dir.
set EXPORTPATH=%USERPROFILE%\Dropbox
REM delete zips of previous versions? Delete or clear if not
set DELETEOLDZIPS=true
/*
* Copyright (C) 2004-2009 See the AUTHORS file for details.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* Made by Mini
*/
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
context "GET index" do
#context "POST create" do
#context "GET show" do
#context "PATCH update" do (or PUT update)
#context "DELETE destroy" do
#context "GET new" do
@manavortex
manavortex / rspec_rails_cheetsheet.rb
Last active November 10, 2016 16:42 — forked from them0nk/rspec_rails_cheetsheet.rb
Rspec Rails cheatsheet (include capybara matchers)
#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)