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
Spork.each_run do | |
require 'cucumber/rails/world' | |
require 'rr' | |
Cucumber::Rails::World.send(:include, RR::Adapters::RRMethods) | |
Before do | |
RR.reset | |
end | |
After 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
class Array | |
def to_proc | |
proc {|o| o.send(*self) } | |
end | |
end | |
# p (1..10).map{|i|i.divmod(2)} | |
p (1..10).map(&[:divmod,2]) | |
content = "Hello World" |
NewerOlder