master
1=begin
2 Write a program that prints the numbers from 1 to 100.
3 But for multiples of three print "Fizz" instead of the
4 number and for the multiples of five print “Buzz”. For
5 numbers which are multiples of both three and five
6 print "FizzBuzz".
7=end
8class FizzBuzz
9 def run(input)
10 end
11end
12
13describe "FizzBuzz" do
14 subject { FizzBuzz.new }
15
16 context "when the input is a multiple of 3" do
17 it "returns 'Fizz'" do
18 (1..10).each do |n|
19 result = subject.run(n*3)
20 expect(result).to include("Fizz")
21 end
22 end
23 end
24
25 context "when the input is a multiple of 5" do
26 xit "returns 'Buzz'" do
27 (1..10).each do |n|
28 result = subject.run(n*5)
29 expect(result).to include("Buzz")
30 end
31 end
32 end
33
34 context "when the input is not a multiple of 3 or 5" do
35 xit 'returns the input' do
36 end
37 end
38end