|
28 | 28 | expect(page).to have_text("Team Name: Bballers") |
29 | 29 | end |
30 | 30 |
|
31 | | - it "displays the coach's name in the browser" do |
32 | | - visit '/newteam' |
| 31 | + it "displays the coach's name in the browser" do |
| 32 | + visit '/newteam' |
33 | 33 |
|
34 | | - fill_in(:coach, :with => "Walter") |
35 | | - click_button "submit" |
| 34 | + fill_in(:coach, :with => "Walter") |
| 35 | + click_button "submit" |
36 | 36 |
|
37 | | - expect(page).to have_text("Coach: Walter") |
38 | | - end |
| 37 | + expect(page).to have_text("Coach: Walter") |
| 38 | + end |
39 | 39 |
|
40 | | - it "displays the point guard's name in the browser" do |
41 | | - visit '/newteam' |
| 40 | + it "displays the point guard's name in the browser" do |
| 41 | + visit '/newteam' |
42 | 42 |
|
43 | | - fill_in(:pg, :with => "Jeff") |
44 | | - click_button "submit" |
| 43 | + fill_in(:pg, :with => "Jeff") |
| 44 | + click_button "submit" |
45 | 45 |
|
46 | | - expect(page).to have_text("Point Guard: Jeff") |
47 | | - end |
| 46 | + expect(page).to have_text("Point Guard: Jeff") |
| 47 | + end |
48 | 48 |
|
49 | | - it "displays the shooting guard's name in the browser" do |
50 | | - visit '/newteam' |
| 49 | + it "displays the shooting guard's name in the browser" do |
| 50 | + visit '/newteam' |
51 | 51 |
|
52 | | - fill_in(:pg, :with => "Ralph") |
53 | | - click_button "submit" |
| 52 | + fill_in(:pg, :with => "Ralph") |
| 53 | + click_button "submit" |
54 | 54 |
|
55 | | - expect(page).to have_text("Shooting Guard: Ralph") |
56 | | - end |
| 55 | + expect(page).to have_text("Shooting Guard: Ralph") |
| 56 | + end |
57 | 57 |
|
58 | | - it "displays the power forward's name in the browser" do |
59 | | - visit '/newteam' |
| 58 | + it "displays the power forward's name in the browser" do |
| 59 | + visit '/newteam' |
60 | 60 |
|
61 | | - fill_in(:pf, :with => "Danny") |
62 | | - click_button "submit" |
| 61 | + fill_in(:pf, :with => "Danny") |
| 62 | + click_button "submit" |
63 | 63 |
|
64 | | - expect(page).to have_text("Power Forward: Danny") |
65 | | - end |
| 64 | + expect(page).to have_text("Power Forward: Danny") |
| 65 | + end |
66 | 66 |
|
67 | | - it "displays the shooting gaurd's name in the browser" do |
68 | | - visit '/newteam' |
| 67 | + it "displays the shooting gaurd's name in the browser" do |
| 68 | + visit '/newteam' |
69 | 69 |
|
70 | | - fill_in(:sg, :with => "Joe") |
71 | | - click_button "submit" |
| 70 | + fill_in(:sg, :with => "Joe") |
| 71 | + click_button "submit" |
72 | 72 |
|
73 | | - expect(page).to have_text("Shooting Guard: Joe") |
74 | | - end |
| 73 | + expect(page).to have_text("Shooting Guard: Joe") |
| 74 | + end |
75 | 75 |
|
76 | | - it "displays the center's name in the browser" do |
77 | | - visit '/newteam' |
| 76 | + it "displays the center's name in the browser" do |
| 77 | + visit '/newteam' |
78 | 78 |
|
79 | | - fill_in(:c, :with => "Avi") |
80 | | - click_button "submit" |
| 79 | + fill_in(:c, :with => "Avi") |
| 80 | + click_button "submit" |
81 | 81 |
|
82 | | - expect(page).to have_text("Center: Avi") |
83 | | - end |
| 82 | + expect(page).to have_text("Center: Avi") |
| 83 | + end |
84 | 84 |
|
85 | 85 |
|
86 | 86 | end |
|
0 commit comments