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

Add matchers for model actions. #2

Open
3 of 7 tasks
thomasfedb opened this issue Jul 23, 2014 · 2 comments
Open
3 of 7 tasks

Add matchers for model actions. #2

thomasfedb opened this issue Jul 23, 2014 · 2 comments
Assignees
Milestone

Comments

@thomasfedb
Copy link
Owner

Add matchers for model operations, syntax as follows:

  • expect{subject}.to create(Model)
  • expect{subject}.to create(Model).with(params)
  • expect{subject}.to update(Model)
  • expect{subject}.to update(instance)
  • expect{subject}.to update(instance).with(params)
  • expect{subject}.to delete(Model)
  • expect{subject}.to delete(instance)
@thomasfedb thomasfedb added this to the v1.3.0 milestone Jul 23, 2014
@thomasfedb thomasfedb self-assigned this Jul 23, 2014
@thomasfedb
Copy link
Owner Author

Version 1.3.0 implements expect{subject}.to create(Model).

@thomasfedb
Copy link
Owner Author

Version 1.3.3 implements expect{subject}.to update(Model).

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

No branches or pull requests

1 participant