Skip to content

Instantly share code, notes, and snippets.

--- a/sandbox-darwin.c 2015-08-21 06:49:03.000000000 +0200
+++ b/sandbox-darwin.c 2015-10-24 04:41:19.000000000 +0200
@@ -62,8 +62,16 @@ ssh_sandbox_child(struct ssh_sandbox *bo
struct rlimit rl_zero;
debug3("%s: starting Darwin sandbox", __func__);
+#ifdef __APPLE_SANDBOX_NAMED_EXTERNAL__
+#ifndef SANDBOX_NAMED_EXTERNAL
+#define SANDBOX_NAMED_EXTERNAL (0x3)
+#endif
# == Schema Information
#
# Table name: dishes
#
# id :integer not null, primary key
# name :string
# category_id :integer
# description :string
# small_size_price :decimal(, )
# large_size_price :decimal(, )
Dish F......F..
1) Dish Model should validate that :name cannot be empty/falsy
Failure/Error: delegate :multi_size?, to: :category
Module::DelegationError:
Dish#multi_size? delegated to category.multi_size?, but category is nil: #<Dish id: nil, name: nil, category_id: 6, description: nil, small_size_price: nil, large_size_price: nil, created_at: nil, updated_at: nil>
# ./app/models/dish.rb:21:in `rescue in multi_size?'
# ./app/models/dish.rb:21:in `multi_size?'
# ./spec/models/dish_spec.rb:25:in `block (3 levels) in <top (required)>'
# == Schema Information
#
# Table name: dishes
#
# id :integer not null, primary key
# name :string
# category_id :integer
# description :string
# small_size_price :decimal(, )
# large_size_price :decimal(, )