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 ability to allow method calls on RepresentedObjects #10

Open
orbanbotond opened this issue May 13, 2014 · 1 comment
Open

Add ability to allow method calls on RepresentedObjects #10

orbanbotond opened this issue May 13, 2014 · 1 comment

Comments

@orbanbotond
Copy link

Add the ability to allow a call on 'represented object', like

expect(subject).to represent(:me) do |represented|
  allow(represented).to receive(:get_authentication_token)
end

In order to support this scenario:

expose :token do |user, options|
  user.get_authentication_token.token
end
@mshappe
Copy link

mshappe commented Jun 17, 2016

+1

Without this, honestly, I can't use these matchers.

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

2 participants