fixing conflicts [#6]
This commit is contained in:
3
Gemfile
3
Gemfile
@@ -32,6 +32,8 @@ gem 'devise'
|
||||
# Use Capistrano for deployment
|
||||
# gem 'capistrano-rails', group: :development
|
||||
|
||||
gem 'foundation-rails'
|
||||
|
||||
group :development, :test do
|
||||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
||||
gem 'byebug'
|
||||
@@ -42,5 +44,6 @@ group :development, :test do
|
||||
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
||||
gem 'spring'
|
||||
gem 'rspec-rails', '~> 3.0'
|
||||
gem 'capybara'
|
||||
end
|
||||
|
||||
|
||||
13
Gemfile.lock
13
Gemfile.lock
@@ -43,6 +43,12 @@ GEM
|
||||
builder (3.2.2)
|
||||
byebug (5.0.0)
|
||||
columnize (= 0.9.0)
|
||||
capybara (2.4.4)
|
||||
mime-types (>= 1.16)
|
||||
nokogiri (>= 1.3.3)
|
||||
rack (>= 1.0.0)
|
||||
rack-test (>= 0.5.4)
|
||||
xpath (~> 2.0)
|
||||
coffee-rails (4.1.0)
|
||||
coffee-script (>= 2.2.0)
|
||||
railties (>= 4.0.0, < 5.0)
|
||||
@@ -62,6 +68,9 @@ GEM
|
||||
diff-lcs (1.2.5)
|
||||
erubis (2.7.0)
|
||||
execjs (2.5.2)
|
||||
foundation-rails (5.5.2.1)
|
||||
railties (>= 3.1.0)
|
||||
sass (>= 3.3.0, < 3.5)
|
||||
globalid (0.3.5)
|
||||
activesupport (>= 4.1.0)
|
||||
i18n (0.7.0)
|
||||
@@ -167,14 +176,18 @@ GEM
|
||||
binding_of_caller (>= 0.7.2)
|
||||
railties (>= 4.0)
|
||||
sprockets-rails (>= 2.0, < 4.0)
|
||||
xpath (2.0.0)
|
||||
nokogiri (~> 1.3)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
byebug
|
||||
capybara
|
||||
coffee-rails (~> 4.1.0)
|
||||
devise
|
||||
foundation-rails
|
||||
jbuilder (~> 2.0)
|
||||
jquery-rails
|
||||
rails (= 4.2.3)
|
||||
|
||||
@@ -12,5 +12,8 @@
|
||||
//
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require foundation
|
||||
//= require turbolinks
|
||||
//= require_tree .
|
||||
|
||||
$(function(){ $(document).foundation(); });
|
||||
|
||||
@@ -12,4 +12,6 @@
|
||||
*
|
||||
*= require_tree .
|
||||
*= require_self
|
||||
*= require foundation_and_overrides
|
||||
|
||||
*/
|
||||
|
||||
1488
app/assets/stylesheets/foundation_and_overrides.scss
Normal file
1488
app/assets/stylesheets/foundation_and_overrides.scss
Normal file
File diff suppressed because it is too large
Load Diff
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,15 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Participacion</title>
|
||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
||||
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
||||
<%= csrf_meta_tags %>
|
||||
</head>
|
||||
<body>
|
||||
<p class="alert"><%= notice %></p>
|
||||
<p class="alert"><%= alert %></p>
|
||||
<%= yield %>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<title><%= content_for?(:title) ? yield(:title) : "foundation-rails" %></title>
|
||||
|
||||
<%= stylesheet_link_tag "application" %>
|
||||
<%= javascript_include_tag "vendor/modernizr" %>
|
||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
||||
<%= csrf_meta_tags %>
|
||||
</head>
|
||||
<body>
|
||||
<p class="alert"><%= notice %></p>
|
||||
<p class="alert"><%= alert %></p>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
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
|
||||
@@ -4,6 +4,8 @@ abort("The Rails environment is running in production mode!") if Rails.env.produ
|
||||
|
||||
require 'spec_helper'
|
||||
require 'rspec/rails'
|
||||
require 'capybara/rails'
|
||||
require 'capybara/rspec'
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
||||
Reference in New Issue
Block a user