Skip to content

Instantly share code, notes, and snippets.

@havenwood

havenwood/ingredients.rb Secret

Created Nov 15, 2019
Embed
What would you like to do?
An example starting point for writing tests for swyper on #ruby IRC
module Ingredients
module_function
def missing_ingredients(recipe:, on_hand:)
end
end
require 'minitest/autorun'
describe Ingredients do
include Ingredients
describe '::missing_ingredients' do
it 'is empty if both are emtpy' do
assert_equal [], missing_ingredients(recipe: [] , on_hand: [])
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.