Shortened, one line version of a spec

Public, Testing / TDD

harrylevine

Created: Apr 25, 2017     Updated: Apr 25, 2017


Here is the full syntax version of a spec:

it "returns no results" do
  expect(results).to be_nil
end

Here is the same spec, in the shortened, one line version:

it { expect(results).to be_nil }