require 'java_helper'

RSpec.feature 'Home page', js: true do
  before { visit '/' }

  it { expect(page.status_code).to eq(200) }
end

require 'java_helper'

RSpec.feature 'Home page', js: true do
  scenario 'visit homepage' do
    visit '/'
    expect(page.status_code).to eq(200)
  end
end

Use feature and scenario DSL
Use feature and scenario DSL

The feature and scenario DSL correspond to describe and it, respectively.
These methods are simply aliases that allow feature specs to read more
as customer and acceptance tests
