Skip to content

Instantly share code, notes, and snippets.

@mistyrinth
Created July 20, 2019 07:12
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 mistyrinth/9e6f9b0caece0c7c51a6a431abb30fd0 to your computer and use it in GitHub Desktop.
Save mistyrinth/9e6f9b0caece0c7c51a6a431abb30fd0 to your computer and use it in GitHub Desktop.
190720blog03
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