cherry picks capybara config [#5]
This commit is contained in:
6
app/controllers/welcome_controller.rb
Normal file
6
app/controllers/welcome_controller.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class WelcomeController < ApplicationController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
end
|
||||
1
app/views/welcome/index.html.erb
Normal file
1
app/views/welcome/index.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h1>Bienvenido al Ayuntamiento de Madrid</h1>
|
||||
10
spec/features/home_spec.rb
Normal file
10
spec/features/home_spec.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
require 'rails_helper'
|
||||
|
||||
feature "Home" do
|
||||
|
||||
scenario "Welcome message" do
|
||||
visit '/'
|
||||
expect(page).to have_content 'Bienvenido al Ayuntamiento de Madrid'
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user