Skip to content

Instantly share code, notes, and snippets.

Linux on Rails linuxonrails

Block or report user

Report or block linuxonrails

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<span class="act-as-link" href="/app/quienes-somos">********FOO LINK********</span>
<br /><br /><br /><br />
@linuxonrails
linuxonrails / test_unit_factories_test.rb
Created Feb 19, 2013
Test all factories automatically with TestUnit
View test_unit_factories_test.rb
# encoding: UTF-8
require 'test_helper'
class FactoryTest < ActiveSupport::TestCase
FactoryGirl.factories.map(&:name).each do |factory_name|
context "The #{factory_name} factory" do
setup do
# ...
@factory = FactoryGirl.build(factory_name)
View gist:2766963
# encoding: UTF-8
Given /^exists a lote$/ do
user = Factory :user,
Gastos_envio: "Aceptamos pago mediante tarjeta de crédito DIRECTAMENTE CON NOSOTROS,
Paypal (pagos superiores a 20 euros), por transferencia bancaria / ingreso en
cuenta, o en mano si se recoge el artículo en nuestra tienda. Envío por correo
CERTIFICADO (no realizamos envíos por correo ordinario), según tarifas vigentes
a España. No enviamos contrareembolso. Si en una semana no se ha recibido el pago
se anulará la venta y se notificará el impago"
You can’t perform that action at this time.