Skip to content

Instantly share code, notes, and snippets.

@PragTob
Created November 26, 2023 10:54
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 PragTob/66a7ab89786bf8b265d77226078f873d to your computer and use it in GitHub Desktop.
Save PragTob/66a7ab89786bf8b265d77226078f873d to your computer and use it in GitHub Desktop.
module FizzBuzz
# ...
def run
1.upto(100) do |number|
puts fizz_buzz(number)
end
end
end
describe ".run" do
full_fizz_buzz = <<~FIZZY
1
2
Fizz
.. much more ...
98
Fizz
Buzz
FIZZY
it "does a full run integration style" do
expect { FizzBuzz.run() }.to output(full_fizz_buzz).to_stdout
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment