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
class UserSession < Authlogic::Session::Base | |
# A method name change in Rails 3 | |
def to_key | |
new_record? ? nil : [ self.send(self.class.primary_key) ] | |
end | |
end |
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
describe "#generate_login" do | |
context "when the user's name is available as a login" do | |
it "sets the login to a combination of user's name" do | |
user.generate_login | |
user.login.should == 'jdoe' | |
end | |
end | |
context "when the user's name is not available as a login" do | |
let(:user_with_same_name) {Factory.build(:user)} |
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 'codefumes_harvester' | |
include CodeFumesHarvester | |
# Start the JavaScript Specs build... | |
QuickBuild.start('javascript specs', 'running'); | |
# ... | |
# if it failed... | |
QuickBuild.finish('javascript specs', 'failed'); |
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 "codefumes_harvester/integrity_notifier/codefumes" |
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
gem 'codefumes_harvester', '>= 0.1.7' |
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 'codefumes_harvester' | |
include CodeFumesHarvester | |
QuickBuild.start('specs', 'successful'); |
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 'codefumes_harvester' | |
include CodeFumesHarvester | |
# if it failed... | |
QuickBuild.finish('specs', 'failed'); | |
# if it was successful... | |
QuickBuild.finish('specs', 'successful'); |
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 'codefumes_harvester' | |
include CodeFumesHarvester | |
QuickBuild.start('specs', 'running'); |
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
$.fn.navigationHover = function(options) { | |
var options = $.extend({}, { | |
sensitivity: 1, | |
interval: 300, | |
timeout: 500, | |
effects:true | |
}, options); | |
// Class shit |