This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## My spec | |
context 'when demo user is logged in' do | |
before do | |
@user = User.make | |
login_as @user | |
end | |
it 'should be redirected' do | |
delete '/user/logout', {}, 'rack.session' => {:someval => 123} | |
last_response.status.should == 302 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined local variable or method `class_name' for GitTracker:Class | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/rpm_contrib-2.1.3/lib/rpm_contrib/instrumentation/resque.rb:7:in `around_perform_with_monitoring' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:139:in `send' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:139:in `perform' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:135:in `call' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:135:in `perform' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-lock-0.1.1/lib/resque/plugins/lock.rb:62:in `around_perform_lock' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:135:in `send' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:135:in `perform' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Access USER info without authenticating yourself | |
ruby-1.8.7-p334 :003 > client = Octokit::Client.new(:login => 'clutchapp') | |
=> #<Octokit::Client:0x10514a568 @endpoint="https://github.com/", @user_agent="Octokit Ruby Gem 0.6.3", @format=:json, @adapter=:net_http, @version=2, @oauth_token=nil, @token=nil, @password=nil, @login="clutchapp", @proxy=nil> | |
ruby-1.8.7-p334 :004 > client.user | |
Octokit::Unauthorized: GET https://github.com/api/v2/json/user/show: 401: <#Hashie::Mash error="not authorized"> | |
from /Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/hybridgroup-octokit-0.6.3/lib/faraday/response/raise_error.rb:11:in `on_complete' | |
from /Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/faraday-0.6.1/lib/faraday/response.rb:9:in `call' | |
from /Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/faraday-0.6.1/lib/faraday/response.rb:62:in `on_complete' | |
from /Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/faraday-0.6.1/lib/faraday/response.rb:8:in `call' | |
from /Users |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* line 5, /Users/emmanueldelgado/Projects/hybridgroup/gh/app/assets/stylesheets/users.css.scss */ | |
#account-settings { | |
padding: 20px; | |
} | |
/* line 8, /Users/emmanueldelgado/Projects/hybridgroup/gh/app/assets/stylesheets/users.css.scss */ | |
#account-settings .left-column { | |
display: inline; | |
float: left; | |
margin-right: 4px; | |
width: 50px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ranges = { | |
'cero': [0, 0], | |
'white': [1, 21], | |
'red': [22, 100]}; | |
var value = 11; | |
for (x in ranges) { | |
if (value >= ranges[x][0] && value <= ranges[x][1]) { | |
console.log(x) | |
break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'redis' | |
redis = Redis.new | |
redis.set 'items', 10 | |
threads = [] | |
ARGV[0].to_i.times do |time| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
................................................................................................./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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |