rspec-given icon indicating copy to clipboard operation
rspec-given copied to clipboard

expect { .. }.to change { .. }.by(..)

Open joevandyk opened this issue 9 years ago • 2 comments

What's the rspec-given way to write something like this? If there's a way, could we add it to the docs?

it do
  expect { Foo.create! }.to change { Foo.count }.by(1)
end

joevandyk avatar Nov 24 '15 21:11 joevandyk

I, too, would like an example!

Epigene avatar May 02 '17 07:05 Epigene

Development and discussion was moved to https://github.com/rspec-given/rspec-given, given Jim is no longer with us.

mikegee avatar May 02 '17 15:05 mikegee