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
$ rake spec:rcov | |
(in /Users/federico/programacion/vom) | |
..................................................................................................................................................................................................................................../usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract_adapter.rb:151: [BUG] rb_gc_mark(): unknown data type 0x18(0x1a77d94) non object | |
ruby 1.8.6 (2008-07-17) [i686-darwin9.4.0] | |
rake aborted! | |
Command /usr/local/bin/ruby -I"/usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib" -S rcov --exclude "spec/*,gems/*" --rails -o "coverage" "/usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.4/bin/spec" -- "spec/controllers/access_control_spec.rb" "spec/controllers/authenticated_system_spec.rb" "spec/controllers/sessions_controller_spec.rb" "spec/controllers/users_controller_spec.rb" "spec/helpers/users_helper_spec.rb" "spec/models/search_spec.rb" "spec/models/user_spec.rb" --options "/Users/federic |
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
## Model | |
class User < ActiveRecord::Base | |
before_save :set_default_values | |
def set_default_values | |
self.smokes ||= false | |
self.drinks ||= false | |
self.contactable ||= false | |
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
require File.dirname(__FILE__) + '/../../spec_helper' | |
require File.dirname(__FILE__) + '/fixtures/classes' | |
describe "IO#<<" do | |
it "writes an object to the IO stream" do | |
lambda { | |
$stderr << "Oh noes, an error!" | |
}.should output_to_fd("Oh noes, an error!", STDERR) | |
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
From 5271bdc0b88c3e4c2c21d7b59885421886760dc8 Mon Sep 17 00:00:00 2001 | |
From: Federico Builes <[email protected]> | |
Date: Mon, 11 Aug 2008 12:14:31 -0500 | |
Subject: [PATCH] Making sure that Kernel#require specs use /tmp for touching files. | |
--- | |
1.8/core/kernel/require_spec.rb | 13 +++++++++++-- | |
1 files changed, 11 insertions(+), 2 deletions(-) | |
diff --git a/1.8/core/kernel/require_spec.rb b/1.8/core/kernel/require_spec.rb |
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
From 270ebebbc2997b56cbea33b29293ef81d0d6a667 Mon Sep 17 00:00:00 2001 | |
From: Federico Builes <[email protected]> | |
Date: Mon, 18 Aug 2008 12:01:07 -0500 | |
Subject: [PATCH] Rewrite routes to find specs instead of test/unit files. | |
--- | |
rinari-movement.el | 4 ++-- | |
rinari.el | 8 ++++---- | |
2 files changed, 6 insertions(+), 6 deletions(-) | |
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 File.dirname(__FILE__) + '/../../spec_helper' | |
require File.dirname(__FILE__) + '/fixtures/methods' | |
describe "Time#_dump" do | |
before :each do | |
@t = Time.local(2000, 1, 15, 20, 1, 1) | |
@s = @t._dump | |
end | |
it "dumps a Time object to a bytestring" do |
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
#include <stdio.h> | |
#import <Cocoa/Cocoa.h> | |
int main() { | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
NSURL *url = [NSURL URLWithString:@"http://lyricwiki.org/api.php?func=getSong&artist=Protest_the_Hero&song=Bloodmeat&fmt=xml"]; | |
NSURLRequest *request = [NSURLRequest requestWithURL:url]; | |
NSURLResponse *response; | |
NSError *error; |
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
;; gist.el --- Emacs integration for gist.github.com | |
;; Copyright (C) 2008 Christian Neukirchen <purl.org/net/chneukirchen> | |
;; Copyright (C) 2008 Chris Wanstrath <[email protected]> | |
;; Copyright (C) 2008 Will Farrington <[email protected]> | |
;; Licensed under the same terms as Emacs. | |
;; Version: 0.3.1 | |
;; 26aug2008 +wfarr+ | |
;; 25aug2008 +defunkt+ | |
;; 21jul2008 +chris+ |
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
(defvar gist-supported-modes-alist '((action-script-mode . "as") | |
(c-mode . "c") | |
(c++-mode . "cpp") | |
(common-lisp-mode . "el") | |
(css-mode . "css") |
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
task :setup_production_database_configuration do | |
mysql_password = Capistrano::CLI.password_prompt("Production MySQL password: ") | |
require 'yaml' | |
spec = { | |
"development" => { | |
"adapter" => "sqlite3", | |
"database" => "db/development.sqlite3" | |
}, |
OlderNewer