Skip to content

Instantly share code, notes, and snippets.

View penso's full-sized avatar

Fabien Penso penso

View GitHub Profile
1) Users::RegistrationsController should create a new user
Failure/Error: expect(assigns(:user).send(key)).to eq(key)
expected: :first_name
got: "cum"
(compared using ==)
Diff:
@@ -1,2 +1,2 @@
2015-05-10T08:33:06.341Z 17056 TID-3lork WARN: /home/deploy/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/monitor.rb:185:in `lock'
/home/deploy/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/monitor.rb:185:in `mon_enter'
/home/deploy/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/monitor.rb:209:in `mon_synchronize'
/data/www/faast/shared/bundle/ruby/2.1.0/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:271:in `active_connection?'
/data/www/faast/shared/bundle/ruby/2.1.0/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:293:in `with_connection'
/data/www/faast/releases/20150509081300/app/worker/rss_parser_worker.rb:8:in `perform'
/data/www/faast/shared/bundle/ruby/2.1.0/gems/sidekiq-3.3.3/lib/sidekiq/processor.rb:75:in `execute_job'
/data/www/faast/shared/bundle/ruby/2.1.0/gems/sidekiq-3.3.3/lib/sidekiq/processor.rb:52:in `block (2 levels) in process'
/data/www/faast/shared/bundle/ruby/2.1.0/gems/sidekiq-3.3.3/lib/sidekiq/middleware/chain.rb:127:in `blo
#!/usr/bin/ruby
require 'rubygems'
require 'twitter'
users = %w/user1 user2 user3/
httpauth = Twitter::HTTPAuth.new('YOUR LOGIN', 'YOUR PASS')
base = Twitter::Base.new(httpauth)
base.friends_timeline.each { |tweet|
if tweet.text =~ /appnotification/
ActionController::MethodNotAllowed (Only get and post requests are allowed.):
passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request'
passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
require RAILS_HOME + "/config/boot"
require "active_support"
require "activerecord"
require RAILS_HOME + "/app/models/app.rb"
ActiveRecord::Base.establish_connection
require RAILS_HOME + "/config/boot"
require "active_support"
require "activerecord"
require RAILS_HOME + "/app/models/app.rb"
ActiveRecord::Base.establish_connection
require 'test_helper'
#require 'tmail'
class UserTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
require 'test_helper'
#require 'tmail'
class UserTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
picasso: App Notifications is an iPhone App that acts as a client for the Apple Push Notification Service. Use our ready-made Twitter and Gmail notification services to instantly receive new tweets, search results, and emails, or create your own custom notifications with our simple REST API.
18:02 < bitwise> hap: "Can't afford your own push notification infrastructure? Use ours. Its easy and cheap."
18:02 < bitwise> and then show a one liner for a url request to the REST api for the "easy" part, and give pricing for the "cheap" part.
18:03 < jfsd> Do you need to know right away when a mission critical Gmail message has arrived? When your son or daughter posts an SOS message to Twitter? Do you want your wife to be able to pop a message up on your iPhone even when it's locked?
require 'superfeedr'
Superfeedr.connect(APP_CONFIG['superfeedr_login'], APP_CONFIG['superfeedr_password']) do
Superfeedr.subscribe(feed) do |result|
if result
puts "Subscribed to : #{feed}"
update_attribute(:sent, true)
end
end
end