Displaying 3 results from an estimated 3 matches for "ottomh".
Did you mean:
ottom
2009 Nov 14
3
authlogic fails on existing accounts when crypted_password is blank
I recently ran a migration to add the following to an existing user
model:
t.string "crypted_password"
t.string "password_salt"
t.string "persistence_token"
There is an existing (cleartext) password field, but authlogic doesn''t
seem to be reading that on existing accounts. As a result, all logins
for existing accounts fail.
How can I get
2007 Mar 07
0
Simulate an enumerable with a mock
I need to simulate an enumerable class (well, it has one method: each).
The code looks something like this OTTOMH:
class Processor
def initialize(input, output)
@input = input; @output = output
end
def run
@input.each do |row|
@output << ProcessorEngine.new(row).process
end
end
end
This is the best I could come up with:
@input = mock("...
2008 Mar 20
1
stories with selenium and the db
Hi all
Tonight I wanted to test out selenium in a story to test some ajax
stuff on a page.
After struggling for an hour or two with disappearing database objects
I found the solution in a blog post by Kerry Buckley.
with the comment included it reads:
# Don''t add an ActiveRecordSafetyListener, or it''ll roll stuff back
class Spec::Story::Runner::ScenarioRunner
def