File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # This file is the source Rails uses to define your schema when running `rails
6
+ # db:schema:load`. When creating a new database, `rails db:schema:load` tends to
7
+ # be faster and is potentially less error prone than running all of your
8
+ # migrations from scratch. Old migrations may fail to apply correctly if those
9
+ # migrations use external dependencies or application code.
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord ::Schema . define ( version : 0 ) do
14
+
15
+ end
Original file line number Diff line number Diff line change 2
2
3
3
class PagesControllerTest < ActionDispatch ::IntegrationTest
4
4
test "should get home" do
5
- get pages_home_url
5
+ get root_path
6
6
assert_response :success
7
7
end
8
8
Original file line number Diff line number Diff line change
1
+ require "application_system_test_case"
2
+
3
+ class PagesTest < ApplicationSystemTestCase
4
+ test "visiting the home page" do
5
+ visit root_path
6
+
7
+ assert_selector "h1" , text : "Hamburger Toggler"
8
+ end
9
+
10
+ test 'clicking the hamburger/nav' do
11
+ visit root_path
12
+ click_button "🍔"
13
+ assert_selector "nav" , class : 'active'
14
+ end
15
+
16
+ test 'clicking a second toggler' do
17
+ visit root_path
18
+ # second button
19
+ end
20
+ end
You can’t perform that action at this time.
0 commit comments