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 syntactic sugar "be" #138

Open
adsteel opened this issue Dec 14, 2015 · 0 comments
Open

Add syntactic sugar "be" #138

adsteel opened this issue Dec 14, 2015 · 0 comments

Comments

@adsteel
Copy link
Contributor

adsteel commented Dec 14, 2015

This custom RSpec step would minimize awkwardness from being forced to find ways to make :see work.

e.g.

expect(roles.user).to be :in_edit_mode

vs

expect(roles.user).to see :edit_mode_enabled
def is_in_edit_mode?
  visible?(:edit_button) &&
  not_visible?(:save_button)
end
@adsteel adsteel changed the title Add syntactic should :be Add syntactic sugar "be" Dec 14, 2015
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