Skip to content

Cop idea: like a Capybara/FindElementValueEq cop #5

@ydah

Description

@ydah

original issue: rubocop/rubocop-rspec#1342 (comment)

# bad
expect(find('input').value).to eq('foobar')
# good
expect(page).to have_field(with: 'foobar')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions