This file contains 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
Feature: Account Update | |
In order to display my most accurate user information | |
As as user | |
I should be able to edit my account | |
Scenario: User forgets password confirmation on edit | |
Given I am signed up and confirmed as "[email protected]/password" | |
When I go to the account edit page | |
And I fill in password with "passw0rd" |
This file contains 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
Then /^I should see error messages$/ do | |
response.body.should match /error(s)? prohibited/m | |
end | |
Given /^no user exists with an email of "(.*)"$/ do |email| | |
User.find_by_email(email).should be_nil | |
end | |
Given /^I am signed up and confirmed as "(.*)\/(.*)"$/ do |email, password| | |
user = Factory :valid_user, |
This file contains 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
2 very ripe bananas | |
3/4 cup sugar | |
1/2 teaspoon baking powder | |
1 teaspoon vanilla | |
1/2 teaspoon baking soda |
This file contains 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
/usr/local/lib/ruby/1.8/monitor.rb:295:in `wakeup': killed thread (ThreadError) | |
from /usr/local/lib/ruby/1.8/monitor.rb:295:in `mon_release' | |
from /usr/local/lib/ruby/1.8/monitor.rb:228:in `mon_exit' | |
from /usr/local/lib/ruby/1.8/monitor.rb:244:in `synchronize' | |
from /usr/local/lib/ruby/1.8/logger.rb:496:in `write' | |
from /usr/local/lib/ruby/1.8/logger.rb:326:in `add' | |
from /usr/local/lib/ruby/gems/1.8/gems/queso-daemon-kit-0.1.7.10/lib/daemon_kit/abstract_logger.rb:122:in `add' | |
from /usr/local/lib/ruby/gems/1.8/gems/queso-daemon-kit-0.1.7.10/lib/daemon_kit/abstract_logger.rb:75:in `info' | |
from /usr/local/lib/ruby/gems/1.8/gems/queso-daemon-kit-0.1.7.10/lib/daemon_kit/initializer.rb:71:in `shutdown' | |
from /usr/local/lib/ruby/gems/1.8/gems/queso-daemon-kit-0.1.7.10/lib/daemon_kit/initializer.rb:197:in `initialize_signal_traps' |
This file contains 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
23:45:14.902235 select(9, [5 8], [], NULL, {0, 50000}) = 0 (Timeout) <0.049604> | |
23:45:14.952033 gettimeofday({1252885514, 952086}, NULL) = 0 <0.000011> | |
23:45:14.952143 select(9, [5 8], [], NULL, {0, 90000}) = 0 (Timeout) <0.089769> | |
23:45:15.042015 gettimeofday({1252885515, 42072}, NULL) = 0 <0.000044> | |
23:45:15.042136 select(9, [5 8], [], NULL, {0, 90000}) = 0 (Timeout) <0.089783> | |
23:45:15.131997 gettimeofday({1252885515, 132043}, NULL) = 0 <0.000042> | |
23:45:15.132108 select(9, [5 8], [], NULL, {0, 90000}) = 0 (Timeout) <0.089819> | |
23:45:15.222079 gettimeofday({1252885515, 222153}, NULL) = 0 <0.000044> | |
23:45:15.222229 select(9, [5 8], [], NULL, {0, 90000}) = 0 (Timeout) <0.089668> | |
23:45:15.311981 gettimeofday({1252885515, 312030}, NULL) = 0 <0.000042> |
This file contains 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
DaemonKit::AMQP.run do | |
amq = ::MQ.new | |
amq.prefetch(20) | |
amq.queue('jobs').subscribe( :ack => true ) do |info, msg| | |
job = Marshal.load(msg) | |
actual_job = job[:type].constantize.send(:new, job[:id]) | |
safely do | |
EM.defer(proc { actual_job.run }, proc { info.ack }) | |
end | |
end |
This file contains 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
def self.friend_ids(id, &blk) | |
http = EventMachine::HttpRequest.new("http://twitter.com/friends/ids/#{id}.json").get | |
http.callback { yield } | |
http.errback { raise StandardError, http.inspect } | |
end |
This file contains 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
ArgumentError: Anonymous modules have no name to be referenced by | |
from /Users/josh/Code/Clients/chc/chapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:585:in `to_constant_name' | |
from /Users/josh/Code/Clients/chc/chapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:391:in `qualified_name_for' | |
from /Users/josh/Code/Clients/chc/chapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:104:in `const_missing' | |
from /Users/josh/Code/Clients/chc/chapp/vendor/plugins/chc_hci/app/models/outpatient_hci.rb:240:in `calculate_out_of_network_ways_to_save' | |
from /Users/josh/Code/Clients/chc/chapp/vendor/plugins/chc_hci/app/models/employer.rb:45:in `calculate_employee_hci' | |
from /Users/josh/Code/Clients/chc/chapp/vendor/plugins/chc_hci/app/models/employer.rb:69:in `all_employees_with_claims' | |
from /Users/josh/Code/Clients/chc/chapp/vendor/plugins/chc_hci/app/models/employer.rb:67:in `each' | |
from /Users/josh/Code/Clients/chc/chapp/vendor/plugins/chc_hci/app/models/employer.rb:67:in |
This file contains 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
def run | |
return if @bot.blank? | |
@bot.feeds.each do |feed| | |
next if feed.uri.blank? | |
DaemonKit.logger.info "Parsing feed #{feed.uri} for #{@bot.username}" | |
Feed.new(feed.uri) do |parsed_feed| | |
parsed_feed.sanitize! | |
entries = parsed_feed.tweetable_entries | |
entries.each do |entry| | |
tweet_entry(feed, entry) |
This file contains 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
#!/usr/bin/env ruby | |
# | |
# Git commit-msg hook. If your branch name is in the form "t123", automatically | |
# adds "Refs #123." to commit messages unless they mention "#123" already. | |
# | |
# By Henrik Nyh <http://henrik.nyh.se> 2009-09-10 under the MIT License. | |
# | |
# | |
# Install: | |
# |