1 2 3 4 5 6 7 8 9 10 11
require './spec/spec_helper' RSpec.describe "App feature spec" do it "renders text" do visit "/" expect(page).to have_content("Lightswitch") expect(page).to have_button("On") click_button "On" expect(page).to have_button("Off") end end