We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 166670e commit ffcd959Copy full SHA for ffcd959
1 file changed
spec/basic_sinatra_forms_spec.rb
@@ -1,10 +1,6 @@
1
describe App do
2
3
describe 'GET /newteam' do
4
- # before do
5
- # visit '/newteam'
6
- # end
7
-
8
it 'sends a 200 status code' do
9
get '/newteam'
10
expect(last_response.status).to eq(200)
@@ -24,13 +20,13 @@
24
20
end
25
21
26
22
describe 'POST /team' do
27
- it "displays the basketball team name in the browser" do
28
- visit '/newteam'
23
+ it "displays the basketball team name in the browser" do
+ visit '/newteam'
29
30
- fill_in(:name, :with => "Bballers")
31
- click_button "submit"
32
- expect(page).to have_text("Team Name: Bballers")
33
- end
+ fill_in(:name, :with => "Bballers")
+ click_button "submit"
+ expect(page).to have_text("Team Name: Bballers")
+ end
34
35
it "displays the coach's name in the browser" do
36
visit '/newteam'
0 commit comments