Skip to content

Instantly share code, notes, and snippets.

@k14i
Last active December 27, 2015 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k14i/7318903 to your computer and use it in GitHub Desktop.
Save k14i/7318903 to your computer and use it in GitHub Desktop.
An invitation of an event.
# -*- coding: utf-8 -*-
require 'spec_helper'
require 'prime'
arr = []
n = Prime.first ** nil.to_i
foo = Proc.new {|x| x.times do n = Prime.first(n).last end }
bar = Proc.new {|x| arr << [[x] * x] }
Prime.first.times do |i| bar.call(Prime.first ** i) end
arr.flatten.map {|x| foo.call(x)}
N = n
describe Event do
def happy_birthday_u1_party
ret = ''
%w{之 ニヨル ノタメノ}.each do |w| ret += "#{N}歳男子#{w} " end
return ret
end
def get_involved?(you_can)
you_can ? true : false
end
context "u1氏之生誕#{N}周年ヲ記念シ、" do
before do
@your_response = get_involved?(happy_birthday_u1_party)
end
it "#{N}歳男子会之開催ヲ此処二宣言スル。" do
expect(@your_response).to be_true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment