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

shared examples #4

Closed
petejkim opened this issue Jan 16, 2012 · 4 comments
Closed

shared examples #4

petejkim opened this issue Jan 16, 2012 · 4 comments
Assignees

Comments

@petejkim
Copy link
Member

sharedExamplesFor(@"foo", ^(NSDictionary *dict) {
  describe(@"bar", ^{
    it(@"does something.", ^{});
  });
});

describe(@"baz", ^{
  itShouldBehaveLike(@"foo");
});

describe(@"qux", ^{
  NSDictionary *dict = [NSDictionary ...];

  itShouldBehaveLike(@"foo", dict);
});

// sharedExamplesFor <=> sharedExamples
// itShouldBehaveLike <=> itBehavesLike
@ghost ghost assigned petejkim Jan 16, 2012
@jspahrsummers
Copy link
Contributor

+1. This would be amazing.

I'm willing to help implement it if needed.

@joshvera
Copy link

+1

@petejkim
Copy link
Member Author

working on it...

@hartbit
Copy link

hartbit commented Apr 26, 2012

+1 for test too :)

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

4 participants