Skip to content

Instantly share code, notes, and snippets.

View dsboulder's full-sized avatar

David Stevenson dsboulder

View GitHub Profile
@dsboulder
dsboulder / s3_overrides.yml
Created November 7, 2016 18:25
An override (-o file) for cf-deployments to use S3 as the blobstore
- type: remove
path: '/instance_groups/name=blobstore'
- type: replace
s3base: &s3base # UNUSED. this part is sneaky, but the same shit is repeated almost verbatim 12 times in CF manifest
blobstore_type: 'fog'
fog_connection:
provider: AWS
aws_access_key_id: ((cc_s3_access_key))
aws_secret_access_key: ((cc_s3_secret_key))
path: '/instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/buildpacks'
describe Product do
before do
@product = Product.new
describe "#total" do
it "returns price x quantity" do
@product.total.should ==
@product.price *
@product.quantity
end
end
describe Product do
it "requires a title" do
Product.new().should have(1).error_on(:title)
end
end