Skip to content

Instantly share code, notes, and snippets.

@pjaspers
Created January 7, 2015 10:04
Show Gist options
  • Save pjaspers/40cfaa0e074b0ca98db4 to your computer and use it in GitHub Desktop.
Save pjaspers/40cfaa0e074b0ca98db4 to your computer and use it in GitHub Desktop.
describe "Dixis" do
subject(:dixis) { SomeExpensiveDixisGenerator.new.take_long_time! }
it "behaves like a dixis" do
expect(dixis.name).to eq("dixis")
end
it "looks like a dixis" do
expect(dixis.beard).to eq(true)
end
it "tweets like a dixis" do
expect(dixi.username).to eq("@dixis")
end
end
# While I'm writing this tests, or am working on the `SomeExpensiveDixisGenerator` I'd prefer
# one assert per test, since it's clear what broke it.
#
# However this will take longer then grouping all the asserts (since it's only one Expensive
# Dixis generation.
#
# So I'd like something like:
#
# GROUPED_RUNNING rspec which would take all the expects and clubber them into the context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment