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
user system total real | |
gruff 0.880000 0.040000 0.920000 (0.849686) | |
scruffy 2.470000 1.910000 4.380000 (3.361562) |
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
beschreibe Menschen do | |
vorher(:von_jeder) do | |
@menschen = Meschen.new(:name =>"Guilherme",:familienname => "Silveira",:alter => 21) | |
@meggie = Meschen.new(:name =>"Meggie",:familienname => "Simpson",:alter => 6) | |
@homer = Meschen.new(:name =>"Homer",:familienname => "Simpson",:alter => 35, | |
:kinder => [@meggie]) | |
end | |
es "muss den vollständigen Namen zurück" do |
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
# Just a simple example | |
describe Person do | |
before(:each) do | |
@person = Person.new(:name => "Guilherme", :last_name => "Silveira", :age => 21, :children => []) | |
@meggie = Person.new(:name => "Meggie", :last_name => "Simpson", :age => 6) | |
@homer = Person.new(:name =>"Homer",:last_name => "Simpson",:age => 35, | |
:children => [@meggie]) | |
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
ENV["RAILS_ENV"] ||= 'test' | |
require 'rubygems' | |
require 'spork' | |
require File.expand_path(File.join(File.dirname(__FILE__),'..','config','environment')) | |
require File.expand_path(File.dirname(__FILE__) + "/blueprints") | |
require 'spec/autorun' | |
require 'spec/rails' | |
require 'authlogic/test_case' |
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
# Rake Syntax for RDoc | |
# | |
Rake::RDocTask.new do |rdoc| | |
rdoc.rdoc_dir = "doc" | |
rdoc.title = "My Gem" | |
rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object' | |
rdoc.options << '--charset' << 'utf-8' | |
rdoc.template = ENV['template'] ? "#{ENV['template']}.rb" : '../doc/template/horo' | |
rdoc.rdoc_files.include("README", "CHANGELOG") | |
rdoc.rdoc_files.include("lib/**/*.rb") |
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
# encoding: utf-8 | |
class TestUnit | |
attr_accessor :name | |
def initialize(name) | |
@name = name | |
@pattern = "test/*_test.rb" | |
@verbose = false | |
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
class MyGem < Morpheus::Base | |
# With block | |
# | |
test_unit do | |
pattern 'test/test*.rb' | |
verbose true | |
warning false | |
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
$ rvm 1.8.7-p248 | |
-bash: /match: No such file or directory | |
-bash: /match: No such file or directory | |
-bash: /match: No such file or directory | |
-bash: /match: No such file or directory | |
-bash: /match: No such file or directory | |
-bash: /log: No such file or directory | |
$ rvm list |
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
# rvm-install added line: | |
if [[ -s $HOME/.profile ]] ; then source $HOME/.profile ; fi | |
# rvm-install added: | |
if [[ -s /Users/tomas/.rvm/scripts/rvm ]] ; then source /Users/tomas/.rvm/scripts/rvm ; fi | |
if [ "\$(type -t __git_ps1)" ]; then | |
PS1="\$(__git_ps1 '(%s) ')$PS1" |
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
ONE WAY | |
[tomas] ~ | |
$ sudo chown -R $(whoami) $HOME | |
[tomas] ~ | |
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed |
OlderNewer