My Recent Pastes (55 and counting)
Pastes by lukeredpath (55 and counting)
Below are the 10 most recent pasties by lukeredpath.
August 29, 2006
5:08AM EDT
by lukeredpath
View all 6 lines
class UserTest < Test::Unit::TestCase def test_create user = User.create(:some => 'params') assert user.save end
August 26, 2006
2:49PM EDT
by lukeredpath
View all 8 lines
def setup @foo = Foo.new def test_some_complex_method_calls_some_complex_sql Foo.expects(:find_by_sql).with("SOME REALLY COMPLEX SQL STRING").returns(something_useful)
August 25, 2006
7:12AM EDT
by lukeredpath
View all 49 lines
ArtifactRules = {
borrowers_Required: function() {
return false;
return ( ArtifactRequests.selected('FullBSQ') ||
ArtifactRequests.selected('ShortBSQ') ||
August 23, 2006
10:56AM EDT
by lukeredpath
# http://svn.danwebb.net/external/delicious/trunk/delicious.rb Delicious.authenticate :username => 'foo', :password => 'bar' Delicious::Post.recent :tag => 'javascript', :count => 5
August 23, 2006
10:41AM EDT
by lukeredpath
View all
15 lines
Includes file attachment.
# Use in your plugins like this: # need to require this somewhere first require 'mephisto/admin/navigation'
August 23, 2006
10:17AM EDT
by lukeredpath
View all 8 lines
# Include hook code here require 'mephisto/admin/navigation' Mephisto::Admin.update_navigation do |left, right| left.add_link "Foo", "/foo"
August 23, 2006
7:52AM EDT
by lukeredpath
View all 31 lines
module Mephisto module Admin class Navigation def initialize(id=nil) @id, @links = id, []
August 06, 2006
1:07PM EDT
by lukeredpath
View all 9 lines
create_table "taggings", :force => true do |t| t.column "tag_id", :integer t.column "taggable_id", :integer t.column "taggable_type", :string end
July 31, 2006
4:42PM EDT
by lukeredpath
create_table :categories_products do |t| t.column :category_id, :integer t.column :product_id, :integer end
July 04, 2006
6:16AM EDT
by lukeredpath
View all 15 lines
def test_has_many_through_is_working_with_users user = User.create # assuming no validations message = Message.create # assuming no validations user.deliveries.create(:message => message) assert_equal 1, user.deliveries.size