Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joevandyk opened this issue Nov 24, 2015 · 2 comments
Open

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

joevandyk opened this issue Nov 24, 2015 · 2 comments

Comments

@joevandyk
Copy link

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 joevandyk changed the title Using expect { .. }.to change { .. }.by(..) expect { .. }.to change { .. }.by(..) Nov 24, 2015
@Epigene
Copy link

Epigene commented May 2, 2017

I, too, would like an example!

@mikegee
Copy link

mikegee commented May 2, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants