Skip to content

Instantly share code, notes, and snippets.

if defined? Rails
require 'spec_helper'
else
root = File.absolute_path File.join(__FILE__, '..', '..')
$:.unshift File.join root, 'app'
$:.unshift File.join root, 'app', 'helpers'
$:.unshift File.join root, 'app', 'controllers'
$:.unshift File.join root, 'lib'
$:.unshift File.join root, 'config'
#!/bin/bash
export LC_ALL="en_GB.UTF-8"
echo "Updating system"
apt-get update
echo "Installing base libraries"
apt-get install -y git-core zlib1g zlib1g-dev sqlite3 libsqlite3-dev ack exuberant-ctags curl openssl libssl-dev
echo "Installing Ruby step 1: Installing rbenv"
module B
def greeting
puts "Hi there"
end
end
module C
def yell
puts "AAaaaaaaaaa!!"
end
18:26:18 guard.1 | /Users/emmanueldelgado/Projects/theproject/app/models/card.rb:54: warning: already initialized constant Fonts
(stable_spree_version) 184m $ cuke features/people_signs_up.feature:9
Using the default profile...
WARNING: No DRb server is running. Running features locally:
[DEPRECATION WARNING] Nested I18n namespace lookup under "activerecord.attributes.spree/order" is no longer supported
.....F-QFont::setPixelSize: Pixel size <= 0 (0)
(::) failed steps (::)
expected: "/sales"
require 'fast_spec_helper'
require 'layout_helper'
require 'fvaults/acts/localizable'
describe LayoutHelper do
let(:mixee) do
mixee = Class.new
mixee.send :include, LayoutHelper
mixee.new
end
................................................................................................./Users/emmanueldelgado/.rbenv/versions/1.9.3-rc1/lib/ruby/gems/1.9.1/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require': iconv will be deprecated in the future, use String#encode instead.
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................F---------F.........F.....F......F.........F.........F...F---------...F------------------------------------------------------------------------......F...F...F----------------------------------------------------
(::) failed steps (::)
this.getWindow() is null (Sel
require 'rubygems'
require 'redis'
redis = Redis.new
redis.set 'items', 10
threads = []
ARGV[0].to_i.times do |time|
module ActionController
class Base
def self.protect_from_forgery; end
def self.before_filter(args); end
def self.layout(args); end
end
end
RSpec.configure do |config|
config.mock_with :rr
Booma::Application.routes.draw do
unless Rails.env.test?
authenticate :admin_user do
mount Resque::Server.new, :at => "/gh_resque"
end
end
match '/auth/:provider/callback' => 'authentications#create'
match '/auth/destroy' => 'authentications#destroy'