Last active
December 27, 2015 11:29
-
-
Save k14i/7318903 to your computer and use it in GitHub Desktop.
An invitation of an event.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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