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 Date | |
# Samples a random time | |
# | |
# Parameters | |
# This takes up to three parameters, that is a range of `years`, `months` and | |
# `days`. Each defining the boundries of the sample date. | |
# | |
# Examples | |
# `Time.random({ years: 1..2 })` will produce a date between one and two |
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
#!/bin/sh | |
rubyversion=1.9.2-p290 | |
rubysrc=ruby-$rubyversion.tar.bz2 | |
checksum=096758c3e853b839dc980b183227b182 | |
destdir=/tmp/install-$rubyversion | |
sudo apt-get -y install libssl-dev | |
gem list -i fpm || sudo gem install fpm |
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
test "should fail without some param" do | |
thing = Thing.new(@valid_params.delete[:some_param]) | |
assert !thing.valid? | |
end |