rspec-given
rspec-given copied to clipboard
expect { .. }.to change { .. }.by(..)
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
I, too, would like an example!
Development and discussion was moved to https://github.com/rspec-given/rspec-given, given Jim is no longer with us.