Ruby - Testing with RSpec and Minitest
Which of the following is the correct syntax to define a test case inside a
describe block in RSpec?describe block in RSpec?do ... end blocks for describe and it. Curly braces are less common for multi-line blocks.it defines test cases, not test. describe 'Calculator' do
test 'adds numbers' do
expect(1 + 1).to eq(2)
end
end uses wrong keyword.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions