Skip to content

Instantly share code, notes, and snippets.

require 'spec_helper'
describe InboundController do
describe "reply from support team" do
context "upon creating successful reply " do
before do
@ticket = Ticket.create(sender: "yiingshan@gmail.com", subject: "my phone freezes all the time", body: "my phone freezes after hanging up", status: "new")
post :create, {
headers: {
'To'=> "ticket+#{@ticket.id}@laantern.com",
@lengarvey
lengarvey / gist:4951133
Last active December 13, 2015 17:49 — forked from anonymous/gist:4951113
#ROUTES
match 'contactar/:id' => 'productos#contactar', :as => 'contactar', :via => :get
match 'contactar' => 'productos#crearcontacto', :as => 'contactar', :via => :post
#CONTROLLER
def contactar
# @producto = Producto.find(params[:id])
@contacto = Contacto.new(:ide => params[:id])
@lengarvey
lengarvey / Gemfile
Created October 12, 2012 03:09 — forked from mhayes/Gemfile
Rails Compass Gem Installation
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# Add these gems
gem 'compass-rails', '~> 1.0.3'
gem 'zurb-foundation', '~> 3.1'
end