-
-
Save mistyrinth/9e6f9b0caece0c7c51a6a431abb30fd0 to your computer and use it in GitHub Desktop.
190720blog03
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 Array, "が空の場合:" do | |
before do | |
@empty_array = [] | |
end | |
it "#empty? は true であること" do | |
expect(@empty_array).to be_empty | |
end | |
it "#size は 0 であること" do | |
expect(@empty_array.size) == 0 | |
end | |
after do | |
@empty_array = nil | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment