Created
January 7, 2015 10:04
-
-
Save pjaspers/40cfaa0e074b0ca98db4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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