Skip to content

Instantly share code, notes, and snippets.

# the current spike
simulated "should raise an error" do
lambda { check "remember_me" }.should raise_error(Webrat::NotFoundError)
end
# our fake tagging, since we own "simualated"
simulated "should raise an error", :rack, :mechanize, :rails do
lambda { check "remember_me" }.should raise_error(Webrat::NotFoundError)
end
webrat "should raise an error", :pass => [:rails, :rack, :mechanize], :pending => [:selenium] do
lambda { check "remember_me" }.should raise_error(Webrat::NotFoundError)
end
Example disabled: should allow the content type to be specified
*****************************************************************
DEPRECATION WARNING: you are using deprecated behaviour that will
be removed from a future version of RSpec.
./spec/private/core/configuration_spec.rb:4
* predicate_matchers is deprecated.
* please use the new Matcher DSL instead.
c:/i2/extern/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.pre/lib/bundler/resolver.rb:235:in `resolve': undefined method `name' for nil:NilClass (NoMethodError)
from c:/i2/extern/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.pre/lib/bundler/resolver.rb:344:in `resolve_requirement'
from c:/i2/extern/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.pre/lib/bundler/resolver.rb:343:in `catch'
from c:/i2/extern/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.pre/lib/bundler/resolver.rb:343:in `resolve_requirement'
from c:/i2/extern/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.pre/lib/bundler/resolver.rb:295:in `resolve'
from c:/i2/extern/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.pre/lib/bundler/resolver.rb:294:in `reverse_each'
from c:/i2/extern/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.pre/lib/bundler/resolver.rb:294:in `resolve'
from c:/i2/extern/ruby/lib/ruby/gems/1.8/gems/bundler-1.1.pre/lib/bundler/resolver.rb:216:in `resolve'
from c:/i2/extern/ruby/lib/ruby/gems/1.8/gems/bundler-1.
require File.expand_path(File.dirname(__FILE__), '/edgecase')
# Greed is a dice game where you roll up to five dice to accumulate
# points. The following "score" function will be used calculate the
# score of a single roll of the dice.
#
# A greed roll is scored as follows:
#
# * A set of three ones is 1000 points
#
puts "Hello, Rubinius!"
mikeg@ubuntu-dt-vm:~/workspace-cpp/rubinius$ time rake vm:test
(in /home/mikeg/workspace-cpp/rubinius)
/usr/bin/ruby vm/codegen/field_extract.rb vm/builtin/basicobject.hpp vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/chararray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledmethod.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/ffi_pointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/randomizer.hpp vm/builtin/regexp.hpp vm/builtin/staticscope.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread.hpp vm/b
package com.suckerpunch.desktopsearch;
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
import static org.elasticsearch.node.NodeBuilder.nodeBuilder;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@gaffo
gaffo / gist:3118768
Created July 15, 2012 21:46
cucumber rails 3.2
➜ moveatron git:(cucumber) rake
Loaded suite /home/mike/workspace-web/moveatron/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started
..........................
Finished in 0.481750882 seconds.
26 tests, 39 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
0% passed
group {"puppet" : ensure => "present"}
# general config options
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
exec { 'apt-get update':
command => 'sudo apt-get update'
}