middleman-core 4.3.0.rc.3 → 4.3.0.rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/features/coffee-script.feature +1 -1
- data/features/helpers_external.feature +17 -1
- data/features/i18n_preview.feature +25 -0
- data/features/ignore_already_minified.feature +1 -1
- data/features/minify_javascript.feature +1 -1
- data/features/page-id.feature +2 -2
- data/features/support/env.rb +1 -4
- data/fixtures/asset-hash-minified-app/config.rb +1 -1
- data/fixtures/env-app/source/stylesheets/site.css.scss +1 -1
- data/fixtures/generator-test/config.rb +1 -1
- data/fixtures/i18n-default-app/source/name.html.erb +1 -0
- data/fixtures/page-id-app/source/{fourty-two.html.erb → forty-two.html.erb} +0 -0
- data/lib/middleman-core/application.rb +1 -1
- data/lib/middleman-core/core_extensions.rb +2 -2
- data/lib/middleman-core/core_extensions/external_helpers.rb +1 -1
- data/lib/middleman-core/core_extensions/i18n.rb +8 -1
- data/lib/middleman-core/extension.rb +3 -3
- data/lib/middleman-core/extensions/gzip.rb +1 -1
- data/lib/middleman-core/extensions/minify_css.rb +1 -1
- data/lib/middleman-core/extensions/minify_javascript.rb +3 -3
- data/lib/middleman-core/file_renderer.rb +1 -1
- data/lib/middleman-core/meta_pages/sitemap_tree.rb +1 -1
- data/lib/middleman-core/preview_server.rb +1 -1
- data/lib/middleman-core/preview_server/server_information_callback_proxy.rb +1 -1
- data/lib/middleman-core/renderers/sass.rb +7 -1
- data/lib/middleman-core/sitemap/extensions/traversal.rb +5 -5
- data/lib/middleman-core/sitemap/store.rb +1 -1
- data/lib/middleman-core/sources/source_watcher.rb +1 -1
- data/lib/middleman-core/step_definitions/server_steps.rb +4 -0
- data/lib/middleman-core/util/files.rb +1 -1
- data/lib/middleman-core/version.rb +1 -1
- data/middleman-core.gemspec +0 -3
- data/spec/middleman-core/core_extensions/data_spec.rb +1 -1
- metadata +6 -20
- data/features/javascript-testing.feature +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe804ebc36f4a264dcde64fc13c9a76573d6fd34b50f982136b82e4bc309d6f5
|
4
|
+
data.tar.gz: 759ee3d80a5683d7904a70a196b0eacc4d7f5e8bafc01da763422285e04d9645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6776538352eff82847ea01c13a3bd1e0afb4bdb38629fda06f15c49e1b6e8e7d0829b12169d4802a1a48a22c7d6c32dd2d62fd73ed9dd165f03b86ad7538598d
|
7
|
+
data.tar.gz: f44eccdd46765b7207e328d560394ea98fa78f11a575e630bf1517dbaf4d566ad3dc25470e857028ed22657a1609ea85c33e6df59594d425a7284e2c0974154f
|
@@ -9,4 +9,20 @@ Feature: Helpers in external files
|
|
9
9
|
Given the Server is running at "external-helpers"
|
10
10
|
Then going to "/automatic.html" should not raise an exception
|
11
11
|
And I should see "One:Two:Three:Four"
|
12
|
-
|
12
|
+
|
13
|
+
Scenario: Automatic Helpers Reload
|
14
|
+
Given the Server is running at "external-helpers"
|
15
|
+
Then going to "/automatic.html" should not raise an exception
|
16
|
+
And I should see "One:Two:Three:Four"
|
17
|
+
|
18
|
+
When the file "helpers/one_helper.rb" has the contents
|
19
|
+
"""
|
20
|
+
module OneHelper
|
21
|
+
def one
|
22
|
+
'Won'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
"""
|
26
|
+
When the Server is reloaded
|
27
|
+
Then going to "/automatic.html" should not raise an exception
|
28
|
+
And I should see "Won:Two:Three:Four"
|
@@ -254,3 +254,28 @@ Feature: i18n Preview
|
|
254
254
|
When I go to "/es/"
|
255
255
|
Then I should see "Como Esta?"
|
256
256
|
Then I should see "Mucho"
|
257
|
+
|
258
|
+
Scenario: Proxy to localized pages.
|
259
|
+
Given a fixture app "i18n-default-app"
|
260
|
+
And a file named "config.rb" with:
|
261
|
+
"""
|
262
|
+
langs = [:en, :es]
|
263
|
+
activate :i18n, mount_at_root: false, langs: langs
|
264
|
+
|
265
|
+
["Tom", "Jen"].each do |name|
|
266
|
+
langs.each do |lang|
|
267
|
+
proxy "/#{lang}/people/#{name.downcase}.html", "/name.html", locals: { name: name }, locale: lang, ignore: true
|
268
|
+
end
|
269
|
+
end
|
270
|
+
"""
|
271
|
+
Given the Server is running at "i18n-default-app"
|
272
|
+
When I go to "/name.html"
|
273
|
+
Then I should see "File Not Found"
|
274
|
+
When I go to "/en/people/tom.html"
|
275
|
+
Then I should see "Howdy Tom"
|
276
|
+
When I go to "/en/people/jen.html"
|
277
|
+
Then I should see "Howdy Jen"
|
278
|
+
When I go to "/es/people/tom.html"
|
279
|
+
Then I should see "Como Esta? Tom"
|
280
|
+
When I go to "/es/people/jen.html"
|
281
|
+
Then I should see "Como Esta? Jen"
|
data/features/page-id.feature
CHANGED
@@ -11,7 +11,7 @@ Feature: Page IDs
|
|
11
11
|
And I should see 'URL5: <a href="/implicit.html">Imp</a>'
|
12
12
|
And I should see 'URL6: <a href="/folder/foldern.html">Foldern</a>'
|
13
13
|
And I should see 'URL7: <a href="/feed.xml">Feed</a>'
|
14
|
-
And I should see "URL8: /
|
14
|
+
And I should see "URL8: /forty-two.html"
|
15
15
|
|
16
16
|
When I go to "/fm.html"
|
17
17
|
Then I should see "I am: frontmatter"
|
@@ -46,7 +46,7 @@ Feature: Page IDs
|
|
46
46
|
And I should see "URL2: /2.html"
|
47
47
|
And I should see 'URL3: <a href="/3.html">Hi</a>'
|
48
48
|
And I should see 'URL4: <a href="/overwrites/from-default.html">Sym</a>'
|
49
|
-
And I should see "URL8: /
|
49
|
+
And I should see "URL8: /forty-two.html"
|
50
50
|
And I should see 'URL9: <a href="/implicit.html">Imp</a>'
|
51
51
|
And I should see 'URL10: <a href="/folder/foldern.html">Foldern</a>'
|
52
52
|
And I should see 'URL11: <a href="/feed.xml">Feed</a>'
|
data/features/support/env.rb
CHANGED
@@ -6,10 +6,7 @@ require 'sassc'
|
|
6
6
|
require 'simplecov'
|
7
7
|
SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/../..'))
|
8
8
|
|
9
|
-
|
10
|
-
Capybara.javascript_driver = :poltergeist
|
11
|
-
|
12
|
-
Capybara.server = :webrick
|
9
|
+
# Capybara.server = :webrick
|
13
10
|
|
14
11
|
require 'simplecov'
|
15
12
|
SimpleCov.start
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= t(:greetings) %> <%= name %>
|
File without changes
|
@@ -439,7 +439,7 @@ module Middleman
|
|
439
439
|
#
|
440
440
|
# @deprecated Prefer accessing settings through "config".
|
441
441
|
#
|
442
|
-
# @param [Symbol] key Name of the
|
442
|
+
# @param [Symbol] key Name of the attribute
|
443
443
|
# @param value Attribute value
|
444
444
|
# @return [void]
|
445
445
|
def set(key, value = nil, &block)
|
@@ -100,10 +100,10 @@ Middleman::Extensions.register :minify_css do
|
|
100
100
|
Middleman::Extensions::MinifyCss
|
101
101
|
end
|
102
102
|
|
103
|
-
#
|
103
|
+
# MinifyJavaScript compresses JS
|
104
104
|
Middleman::Extensions.register :minify_javascript do
|
105
105
|
require 'middleman-core/extensions/minify_javascript'
|
106
|
-
Middleman::Extensions::
|
106
|
+
Middleman::Extensions::MinifyJavaScript
|
107
107
|
end
|
108
108
|
|
109
109
|
# GZIP assets and pages during build
|
@@ -19,7 +19,7 @@ module Middleman
|
|
19
19
|
module_name = app.config[:helpers_filename_to_module_name_proc].call(filename)
|
20
20
|
next unless module_name
|
21
21
|
|
22
|
-
|
22
|
+
load filename
|
23
23
|
next unless Object.const_defined?(module_name.to_sym)
|
24
24
|
|
25
25
|
app.template_context_class.send :include, Object.const_get(module_name.to_sym)
|
@@ -177,7 +177,14 @@ class Middleman::CoreExtensions::Internationalization < ::Middleman::Extension
|
|
177
177
|
|
178
178
|
result = parse_locale_extension(resource.path)
|
179
179
|
ext_locale, path, page_id = result
|
180
|
-
|
180
|
+
|
181
|
+
new_resource = build_resource(path, resource.path, page_id, ext_locale)
|
182
|
+
|
183
|
+
# extension resources replace original i18n attempt.
|
184
|
+
exists = new_resources.find { |r| r.path == new_resource.path }
|
185
|
+
new_resources.delete(exists) if exists
|
186
|
+
|
187
|
+
new_resources << new_resource
|
181
188
|
|
182
189
|
resource.ignore!
|
183
190
|
end
|
@@ -204,7 +204,7 @@ module Middleman
|
|
204
204
|
# expose_to_application global_name: :local_name
|
205
205
|
# @example with Array:
|
206
206
|
# expose_to_application :method1, :method2
|
207
|
-
# @param [Array<
|
207
|
+
# @param [Array<Symbol>, Hash<Symbol, Symbol>] symbols An optional list of symbols representing instance methods to exposed.
|
208
208
|
# @return [void]
|
209
209
|
def expose_to_application(*symbols)
|
210
210
|
self.exposed_to_application ||= {}
|
@@ -224,7 +224,7 @@ module Middleman
|
|
224
224
|
# expose_to_config global_name: :local_name
|
225
225
|
# @example with Array:
|
226
226
|
# expose_to_config :method1, :method2
|
227
|
-
# @param [Array<
|
227
|
+
# @param [Array<Symbol>, Hash<Symbol, Symbol>] symbols An optional list of symbols representing instance methods to exposed.
|
228
228
|
# @return [void]
|
229
229
|
def expose_to_config(*symbols)
|
230
230
|
self.exposed_to_config ||= {}
|
@@ -244,7 +244,7 @@ module Middleman
|
|
244
244
|
# expose_to_template global_name: :local_name
|
245
245
|
# @example with Array:
|
246
246
|
# expose_to_template :method1, :method2
|
247
|
-
# @param [Array<
|
247
|
+
# @param [Array<Symbol>, Hash<Symbol, Symbol>] symbols An optional list of symbols representing instance methods to exposed.
|
248
248
|
# @return [void]
|
249
249
|
def expose_to_template(*symbols)
|
250
250
|
self.exposed_to_template ||= {}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# This extension Gzips assets and pages when building.
|
2
2
|
# Gzipped assets and pages can be served directly by Apache or
|
3
3
|
# Nginx with the proper configuration, and pre-zipping means that we
|
4
|
-
# can use a more
|
4
|
+
# can use a more aggressive compression level at no CPU cost per request.
|
5
5
|
#
|
6
6
|
# Use Nginx's gzip_static directive, or AddEncoding and mod_rewrite in Apache
|
7
7
|
# to serve your Gzipped files whenever the normal (non-.gz) filename is requested.
|
@@ -2,8 +2,8 @@ require 'active_support/core_ext/object/try'
|
|
2
2
|
require 'middleman-core/contracts'
|
3
3
|
require 'memoist'
|
4
4
|
|
5
|
-
# Minify
|
6
|
-
class Middleman::Extensions::
|
5
|
+
# Minify JavaScript Extension
|
6
|
+
class Middleman::Extensions::MinifyJavaScript < ::Middleman::Extension
|
7
7
|
option :inline, false, 'Whether to minify JS inline within HTML files'
|
8
8
|
option :ignore, [], 'Patterns to avoid minifying'
|
9
9
|
option :compressor, proc {
|
@@ -49,7 +49,7 @@ class Middleman::Extensions::MinifyJavascript < ::Middleman::Extension
|
|
49
49
|
end
|
50
50
|
|
51
51
|
# Rack interface
|
52
|
-
# @param [Rack::
|
52
|
+
# @param [Rack::Environment] env
|
53
53
|
# @return [Array]
|
54
54
|
def call(env)
|
55
55
|
status, headers, response = @app.call(env)
|
@@ -59,7 +59,7 @@ module Middleman
|
|
59
59
|
|
60
60
|
if path_parts.size == 1
|
61
61
|
sitemap_class = SitemapResource
|
62
|
-
# Allow special sitemap resources to use custom metadata view
|
62
|
+
# Allow special sitemap resources to use custom metadata view classes
|
63
63
|
sitemap_class = resource.meta_pages_class if resource.respond_to? :meta_pages_class
|
64
64
|
|
65
65
|
@children[first_part] = sitemap_class.new(resource)
|
@@ -212,7 +212,7 @@ module Middleman
|
|
212
212
|
@cli_options[key] || config[key]
|
213
213
|
end
|
214
214
|
|
215
|
-
# Trap some
|
215
|
+
# Trap some interrupt signals and shut down smoothly
|
216
216
|
# @return [void]
|
217
217
|
def register_signal_handlers
|
218
218
|
%w[INT HUP TERM QUIT].each do |sig|
|
@@ -7,7 +7,7 @@ module Middleman
|
|
7
7
|
# * server name
|
8
8
|
# * site_addresses
|
9
9
|
#
|
10
|
-
# All information is "
|
10
|
+
# All information is "duped" and the callback is not meant to be used to
|
11
11
|
# modify these information.
|
12
12
|
class ServerInformationCallbackProxy
|
13
13
|
attr_reader :server_name, :port, :site_addresses, :listeners
|
@@ -9,11 +9,14 @@ module Middleman
|
|
9
9
|
module Renderers
|
10
10
|
# Sass renderer
|
11
11
|
class Sass < ::Middleman::Extension
|
12
|
+
DEFAULT_SASS_CACHE_LOCATION = './.sass-cache'.freeze
|
13
|
+
|
12
14
|
opts = { output_style: :nested }
|
13
15
|
opts[:line_comments] = false if ENV['TEST']
|
14
16
|
define_setting :sass, opts, 'Sass engine options'
|
15
17
|
define_setting :sass_assets_paths, [], 'Paths to extra SASS/SCSS files'
|
16
18
|
define_setting :sass_source_maps, nil, 'Whether to inline sourcemap into Sass'
|
19
|
+
define_setting :sass_cache_location, ENV['SASS_CACHE_LOCATION'] || DEFAULT_SASS_CACHE_LOCATION, 'Where to store sass cache files'
|
17
20
|
|
18
21
|
# Setup extension
|
19
22
|
def initialize(app, options = {}, &block)
|
@@ -21,7 +24,9 @@ module Middleman
|
|
21
24
|
|
22
25
|
logger.info '== Preferring use of LibSass' if defined?(::SassC)
|
23
26
|
|
24
|
-
app.
|
27
|
+
if app.config[:sass_cache_location] == DEFAULT_SASS_CACHE_LOCATION
|
28
|
+
app.files.ignore :sass_cache, :source, /(^|\/)\.sass-cache\//
|
29
|
+
end
|
25
30
|
|
26
31
|
# Tell Tilt to use it as well (for inline sass blocks)
|
27
32
|
::Tilt.register 'sass', SassPlusCSSFilenameTemplate
|
@@ -81,6 +86,7 @@ module Middleman
|
|
81
86
|
filename: eval_file,
|
82
87
|
line: line,
|
83
88
|
syntax: syntax,
|
89
|
+
cache_location: ctx.app.config[:sass_cache_location],
|
84
90
|
custom: {}.merge!(options[:custom] || {}).merge!(
|
85
91
|
middleman_context: ctx.app,
|
86
92
|
current_resource: ctx.current_resource
|
@@ -28,8 +28,8 @@ module Middleman
|
|
28
28
|
# Does the current page has the name of an index file?
|
29
29
|
is_index = current_page == index_file
|
30
30
|
# Is the `current_page` in the traversal root?
|
31
|
-
# Note: `traversal_root` is `/` for non
|
32
|
-
#
|
31
|
+
# Note: `traversal_root` is `/` for non localized pages and `/[lang]/` for
|
32
|
+
# localized pages.
|
33
33
|
at_traversal_root = !(child_path =~ /^#{traversal_root}#{current_page}$/).nil?
|
34
34
|
|
35
35
|
# Check that we have any path parts left after the pop because if we
|
@@ -66,8 +66,8 @@ module Middleman
|
|
66
66
|
# E.g. `parts == ['en', 'blog']`, we try to find: `/en/blog.html`
|
67
67
|
file_by_parts.call(parts)
|
68
68
|
|
69
|
-
# Try to find an non-
|
70
|
-
# indicates the path is
|
69
|
+
# Try to find an non-localized parent instead if `traversal_root`
|
70
|
+
# indicates the path is localized and there are still more parts
|
71
71
|
# remaining, and return it.
|
72
72
|
# E.g. `parts == ['en', 'blog']`, we try to find: `/blog.html`
|
73
73
|
if traversal_root != '/' && parts.length > 1
|
@@ -80,7 +80,7 @@ module Middleman
|
|
80
80
|
parts.pop if is_index
|
81
81
|
index_by_parts.call(parts)
|
82
82
|
|
83
|
-
# Lastly, check for an non-
|
83
|
+
# Lastly, check for an non-localized index index file in the path
|
84
84
|
# above `current_page`'s path and return it.
|
85
85
|
# E.g. `parts == ['en', 'blog']`, we try to find: `/index.html`
|
86
86
|
if traversal_root == "#{parts.first}/"
|
@@ -121,7 +121,7 @@ module Middleman
|
|
121
121
|
rebuild_resource_list!(:"registered_new_manipulator_#{name}")
|
122
122
|
end
|
123
123
|
|
124
|
-
# Rebuild the list of resources from scratch, using
|
124
|
+
# Rebuild the list of resources from scratch, using registered manipulators
|
125
125
|
# @return [void]
|
126
126
|
Contract Symbol => Any
|
127
127
|
def rebuild_resource_list!(name)
|
@@ -65,6 +65,10 @@ Given /^the Server is running at "([^\"]*)"$/ do |app_path|
|
|
65
65
|
step %(the Server is running)
|
66
66
|
end
|
67
67
|
|
68
|
+
When /^the Server is reloaded$/ do
|
69
|
+
step %(the Server is running)
|
70
|
+
end
|
71
|
+
|
68
72
|
Given /^a template named "([^\"]*)" with:$/ do |name, string|
|
69
73
|
step %(a file named "source/#{name}" with:), string
|
70
74
|
end
|
data/middleman-core.gemspec
CHANGED
@@ -87,7 +87,7 @@ describe Middleman::CoreExtensions::Data::DataStore do
|
|
87
87
|
end
|
88
88
|
|
89
89
|
context 'given path matches callback data' do
|
90
|
-
it 'returns value of
|
90
|
+
it 'returns value of callback lambda' do
|
91
91
|
@subject.callbacks :foo, -> { { 'bar' => 'baz' } }
|
92
92
|
@subject.callbacks :wu, -> { %i[tang clan] }
|
93
93
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.0.rc.
|
4
|
+
version: 4.3.0.rc.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Reynolds
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-11-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -206,20 +206,6 @@ dependencies:
|
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '3.0'
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: capybara
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 2.5.0
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 2.5.0
|
223
209
|
- !ruby/object:Gem::Dependency
|
224
210
|
name: i18n
|
225
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -402,7 +388,6 @@ files:
|
|
402
388
|
- features/ignore_already_minified.feature
|
403
389
|
- features/image_srcset_paths.feature
|
404
390
|
- features/import_files.feature
|
405
|
-
- features/javascript-testing.feature
|
406
391
|
- features/layouts_dir.feature
|
407
392
|
- features/liquid.feature
|
408
393
|
- features/markdown.feature
|
@@ -805,6 +790,7 @@ files:
|
|
805
790
|
- fixtures/i18n-default-app/locales/en.yml
|
806
791
|
- fixtures/i18n-default-app/locales/es.yml
|
807
792
|
- fixtures/i18n-default-app/source/localizable/index.html.erb
|
793
|
+
- fixtures/i18n-default-app/source/name.html.erb
|
808
794
|
- fixtures/i18n-force-locale/config.rb
|
809
795
|
- fixtures/i18n-force-locale/locales/en.yml
|
810
796
|
- fixtures/i18n-force-locale/locales/es.yml
|
@@ -1279,7 +1265,7 @@ files:
|
|
1279
1265
|
- fixtures/page-id-app/source/feed.xml.erb
|
1280
1266
|
- fixtures/page-id-app/source/fm.html.erb
|
1281
1267
|
- fixtures/page-id-app/source/folder/foldern.html.erb
|
1282
|
-
- fixtures/page-id-app/source/
|
1268
|
+
- fixtures/page-id-app/source/forty-two.html.erb
|
1283
1269
|
- fixtures/page-id-app/source/implicit.html.erb
|
1284
1270
|
- fixtures/page-id-app/source/index.html.erb
|
1285
1271
|
- fixtures/page-id-app/source/overwrites/from-default.html.erb
|
@@ -1622,7 +1608,6 @@ test_files:
|
|
1622
1608
|
- features/ignore_already_minified.feature
|
1623
1609
|
- features/image_srcset_paths.feature
|
1624
1610
|
- features/import_files.feature
|
1625
|
-
- features/javascript-testing.feature
|
1626
1611
|
- features/layouts_dir.feature
|
1627
1612
|
- features/liquid.feature
|
1628
1613
|
- features/markdown.feature
|
@@ -2025,6 +2010,7 @@ test_files:
|
|
2025
2010
|
- fixtures/i18n-default-app/locales/en.yml
|
2026
2011
|
- fixtures/i18n-default-app/locales/es.yml
|
2027
2012
|
- fixtures/i18n-default-app/source/localizable/index.html.erb
|
2013
|
+
- fixtures/i18n-default-app/source/name.html.erb
|
2028
2014
|
- fixtures/i18n-force-locale/config.rb
|
2029
2015
|
- fixtures/i18n-force-locale/locales/en.yml
|
2030
2016
|
- fixtures/i18n-force-locale/locales/es.yml
|
@@ -2499,7 +2485,7 @@ test_files:
|
|
2499
2485
|
- fixtures/page-id-app/source/feed.xml.erb
|
2500
2486
|
- fixtures/page-id-app/source/fm.html.erb
|
2501
2487
|
- fixtures/page-id-app/source/folder/foldern.html.erb
|
2502
|
-
- fixtures/page-id-app/source/
|
2488
|
+
- fixtures/page-id-app/source/forty-two.html.erb
|
2503
2489
|
- fixtures/page-id-app/source/implicit.html.erb
|
2504
2490
|
- fixtures/page-id-app/source/index.html.erb
|
2505
2491
|
- fixtures/page-id-app/source/overwrites/from-default.html.erb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Feature: Test a site with javascript included
|
2
|
-
|
3
|
-
As a software developer
|
4
|
-
I want to develop a site using javascript
|
5
|
-
I would like to have a server step rendering javascript correctly in order to test it
|
6
|
-
|
7
|
-
@javascript
|
8
|
-
Scenario: Existing app with javascript
|
9
|
-
Given the Server is running at "javascript-app"
|
10
|
-
When I go to "/index.html"
|
11
|
-
Then I should see:
|
12
|
-
"""
|
13
|
-
Local Hour
|
14
|
-
"""
|
15
|
-
And I should see:
|
16
|
-
"""
|
17
|
-
Local Minutes
|
18
|
-
"""
|