Created
November 26, 2023 10:54
-
-
Save PragTob/66a7ab89786bf8b265d77226078f873d to your computer and use it in GitHub Desktop.
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
module FizzBuzz | |
# ... | |
def run | |
1.upto(100) do |number| | |
puts fizz_buzz(number) | |
end | |
end | |
end |
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
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