$ ruby -Ilib:test -e'require "test1"; require "test2"'
$ rake TEST=test/test[1,2].rb
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |
| package ca.jbrains.pos.test; | |
| import org.junit.*; | |
| import static org.junit.Assert.*; | |
| import java.util.*; | |
| public class SellOneItemTest { | |
| private POSDisplay display = new POSDisplay(); | |
| private Sale sale; |
| --colour | |
| -I app |
| #!/usr/bin/ruby | |
| require 'time' | |
| def format_time(seconds) | |
| hours = (seconds / 3600).to_i | |
| minutes = ((seconds % 3600) / 60).to_i | |
| seconds = (seconds % 60).to_i | |
| minutes = "0#{minutes}" if minutes < 10 | |
| seconds = "0#{seconds}" if seconds < 10 |
| # ... | |
| desc "Deploy website to s3/cloudfront via aws-sdk" | |
| task :s3_cloudfront => [:generate, :minify, :gzip, :compress_images] do | |
| puts "==================================================" | |
| puts " Deploying to Amazon S3 & CloudFront" | |
| puts "==================================================" | |
| # setup the aws_deploy_tools object | |
| config = YAML::load( File.open("_config.yml")) |