middleman-core 4.0.0.alpha.2 → 4.0.0.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/features/asset_hash.feature +26 -8
  3. data/features/chained_templates.feature +88 -1
  4. data/features/cli_init.feature +0 -18
  5. data/features/collections.feature +145 -0
  6. data/features/console.feature +11 -0
  7. data/features/front-matter.feature +11 -0
  8. data/features/paginate.feature +204 -0
  9. data/features/partials.feature +0 -5
  10. data/features/slim.feature +1 -1
  11. data/features/working_directory.feature +33 -0
  12. data/fixtures/asset-hash-app/source/api.json.erb +1 -0
  13. data/fixtures/asset-hash-app/source/images/200px.jpg +0 -0
  14. data/fixtures/asset-hash-app/source/images/300px.jpg +0 -0
  15. data/fixtures/asset-hash-app/source/index.html.erb +1 -1
  16. data/fixtures/asset-hash-app/source/subdir/api.json.erb +1 -0
  17. data/fixtures/collections-app/config.rb +16 -0
  18. data/fixtures/collections-app/source/blog1/2011-01-01-new-article.html.markdown +7 -0
  19. data/fixtures/collections-app/source/blog1/2011-01-02-another-article.html.markdown +9 -0
  20. data/fixtures/collections-app/source/blog2/2011-01-01-new-article.html.markdown +7 -0
  21. data/fixtures/collections-app/source/blog2/2011-01-02-another-article.html.markdown +8 -0
  22. data/fixtures/collections-app/source/index.html.erb +26 -0
  23. data/fixtures/frontmatter-app/source/front-matter-pandoc.html.md.erb +13 -0
  24. data/fixtures/generator-test/config.rb +2 -7
  25. data/fixtures/multiple-data-sources-app/source/index.html.erb +0 -5
  26. data/fixtures/{more-instance-vars-app → paginate-app}/config.rb +0 -0
  27. data/fixtures/paginate-app/source/archive/2011/index.html.erb +20 -0
  28. data/fixtures/paginate-app/source/blog/2011-01-01-test-article.html.markdown +6 -0
  29. data/fixtures/paginate-app/source/blog/2011-01-02-test-article.html.markdown +6 -0
  30. data/fixtures/paginate-app/source/blog/2011-01-03-test-article.html.markdown +6 -0
  31. data/fixtures/paginate-app/source/blog/2011-01-04-test-article.html.markdown +6 -0
  32. data/fixtures/paginate-app/source/blog/2011-01-05-test-article.html.markdown +6 -0
  33. data/fixtures/paginate-app/source/blog/2011-02-01-test-article.html.markdown +6 -0
  34. data/fixtures/paginate-app/source/blog/2011-02-02-test-article.html.markdown +6 -0
  35. data/fixtures/paginate-app/source/index.html.erb +15 -0
  36. data/fixtures/paginate-app/source/tag.html.erb +23 -0
  37. data/fixtures/partial-chained_templates-app/config.rb +0 -0
  38. data/lib/middleman-core/application.rb +28 -1
  39. data/lib/middleman-core/builder.rb +2 -0
  40. data/lib/middleman-core/contracts.rb +19 -1
  41. data/lib/middleman-core/core_extensions.rb +5 -0
  42. data/lib/middleman-core/core_extensions/collections.rb +82 -0
  43. data/lib/middleman-core/core_extensions/collections/lazy_root.rb +30 -0
  44. data/lib/middleman-core/core_extensions/collections/lazy_step.rb +48 -0
  45. data/lib/middleman-core/core_extensions/collections/pagination.rb +59 -0
  46. data/lib/middleman-core/core_extensions/collections/step_context.rb +26 -0
  47. data/lib/middleman-core/core_extensions/data.rb +1 -1
  48. data/lib/middleman-core/core_extensions/default_helpers.rb +1 -2
  49. data/lib/middleman-core/core_extensions/front_matter.rb +10 -3
  50. data/lib/middleman-core/core_extensions/i18n.rb +6 -7
  51. data/lib/middleman-core/core_extensions/show_exceptions.rb +1 -1
  52. data/lib/middleman-core/extension.rb +1 -1
  53. data/lib/middleman-core/extensions/automatic_image_sizes.rb +0 -2
  54. data/lib/middleman-core/file_renderer.rb +3 -1
  55. data/lib/middleman-core/load_paths.rb +2 -1
  56. data/lib/middleman-core/logger.rb +1 -1
  57. data/lib/middleman-core/meta_pages/sitemap_resource.rb +1 -1
  58. data/lib/middleman-core/preview_server.rb +1 -1
  59. data/lib/middleman-core/renderers/sass.rb +1 -1
  60. data/lib/middleman-core/renderers/slim.rb +2 -2
  61. data/lib/middleman-core/sitemap/extensions/on_disk.rb +1 -1
  62. data/lib/middleman-core/sitemap/extensions/proxies.rb +36 -50
  63. data/lib/middleman-core/sitemap/resource.rb +42 -3
  64. data/lib/middleman-core/sitemap/store.rb +5 -0
  65. data/lib/middleman-core/sources.rb +64 -24
  66. data/lib/middleman-core/sources/source_watcher.rb +47 -23
  67. data/lib/middleman-core/step_definitions/server_steps.rb +52 -21
  68. data/lib/middleman-core/template_context.rb +26 -5
  69. data/lib/middleman-core/template_renderer.rb +50 -33
  70. data/lib/middleman-core/util.rb +94 -1
  71. data/lib/middleman-core/util/hash_with_indifferent_access.rb +1 -1
  72. data/lib/middleman-core/version.rb +1 -1
  73. data/middleman-core.gemspec +2 -0
  74. metadata +90 -15
  75. data/features/more-instance_vars.feature +0 -18
  76. data/fixtures/more-instance-vars-app/source/_vartial.erb +0 -5
  77. data/fixtures/more-instance-vars-app/source/instance-var-set.html.erb +0 -2
  78. data/fixtures/more-instance-vars-app/source/layout.erb +0 -3
  79. data/fixtures/more-instance-vars-app/source/no-instance-var.html.erb +0 -1
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # Core
22
22
  s.add_dependency('bundler', ['~> 1.1'])
23
+ s.add_dependency('backports', ['~> 3.6'])
23
24
  s.add_dependency('rack', ['>= 1.4.5', '< 2.0'])
24
25
  s.add_dependency('tilt', ['~> 1.4.1'])
25
26
  s.add_dependency('erubis')
@@ -28,6 +29,7 @@ Gem::Specification.new do |s|
28
29
  # Helpers
29
30
  s.add_dependency('activesupport', ['~> 4.1.0'])
30
31
  s.add_dependency('padrino-helpers', ['~> 0.12.3'])
32
+ s.add_dependency("addressable", ["~> 2.3.5"])
31
33
 
32
34
  # Watcher
33
35
  s.add_dependency('listen', ['>= 2.7.9', '< 3.0'])
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.0.0.alpha.2
4
+ version: 4.0.0.alpha.3
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: 2014-08-18 00:00:00.000000000 Z
13
+ date: 2014-12-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -26,6 +26,20 @@ dependencies:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: '1.1'
29
+ - !ruby/object:Gem::Dependency
30
+ name: backports
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: '3.6'
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '3.6'
29
43
  - !ruby/object:Gem::Dependency
30
44
  name: rack
31
45
  requirement: !ruby/object:Gem::Requirement
@@ -116,6 +130,20 @@ dependencies:
116
130
  - - "~>"
117
131
  - !ruby/object:Gem::Version
118
132
  version: 0.12.3
133
+ - !ruby/object:Gem::Dependency
134
+ name: addressable
135
+ requirement: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: 2.3.5
140
+ type: :runtime
141
+ prerelease: false
142
+ version_requirements: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: 2.3.5
119
147
  - !ruby/object:Gem::Dependency
120
148
  name: listen
121
149
  requirement: !ruby/object:Gem::Requirement
@@ -264,6 +292,8 @@ files:
264
292
  - features/cli_extension.feature
265
293
  - features/cli_init.feature
266
294
  - features/coffee-script.feature
295
+ - features/collections.feature
296
+ - features/console.feature
267
297
  - features/content_for.feature
268
298
  - features/content_type.feature
269
299
  - features/custom-source.feature
@@ -309,12 +339,12 @@ files:
309
339
  - features/more-extensionless_text_files.feature
310
340
  - features/more-frontmatter_page_settings.feature
311
341
  - features/more-ignore.feature
312
- - features/more-instance_vars.feature
313
342
  - features/more-sitemap_traversal.feature
314
343
  - features/more-wildcard_page_helper.feature
315
344
  - features/mount_rack.feature
316
345
  - features/multiple-sources.feature
317
346
  - features/nested_layouts.feature
347
+ - features/paginate.feature
318
348
  - features/partials.feature
319
349
  - features/preview_changes.feature
320
350
  - features/proxy_pages.feature
@@ -334,13 +364,17 @@ files:
334
364
  - features/unicode_filenames.feature
335
365
  - features/v4_extension_callbacks.feature
336
366
  - features/wildcard_page_helper.feature
367
+ - features/working_directory.feature
337
368
  - fixtures/asset-hash-app/config.rb
338
369
  - fixtures/asset-hash-app/lib/middleware.rb
370
+ - fixtures/asset-hash-app/source/api.json.erb
339
371
  - fixtures/asset-hash-app/source/apple-touch-icon.png
340
372
  - fixtures/asset-hash-app/source/favicon.ico
341
373
  - fixtures/asset-hash-app/source/images/100px.gif
342
374
  - fixtures/asset-hash-app/source/images/100px.jpg
343
375
  - fixtures/asset-hash-app/source/images/100px.png
376
+ - fixtures/asset-hash-app/source/images/200px.jpg
377
+ - fixtures/asset-hash-app/source/images/300px.jpg
344
378
  - fixtures/asset-hash-app/source/index.html.erb
345
379
  - fixtures/asset-hash-app/source/javascripts/application.js
346
380
  - fixtures/asset-hash-app/source/layout.erb
@@ -349,6 +383,7 @@ files:
349
383
  - fixtures/asset-hash-app/source/stylesheets/_partial.sass
350
384
  - fixtures/asset-hash-app/source/stylesheets/site.css.scss
351
385
  - fixtures/asset-hash-app/source/stylesheets/uses_partials.css.sass
386
+ - fixtures/asset-hash-app/source/subdir/api.json.erb
352
387
  - fixtures/asset-hash-app/source/subdir/index.html.erb
353
388
  - fixtures/asset-hash-host-app/config.rb
354
389
  - fixtures/asset-hash-host-app/source/images/100px.gif
@@ -440,6 +475,12 @@ files:
440
475
  - fixtures/coffeescript-app/source/inline-coffeescript.html.haml
441
476
  - fixtures/coffeescript-app/source/javascripts/broken-coffee.js.coffee
442
477
  - fixtures/coffeescript-app/source/javascripts/coffee_test.js.coffee
478
+ - fixtures/collections-app/config.rb
479
+ - fixtures/collections-app/source/blog1/2011-01-01-new-article.html.markdown
480
+ - fixtures/collections-app/source/blog1/2011-01-02-another-article.html.markdown
481
+ - fixtures/collections-app/source/blog2/2011-01-01-new-article.html.markdown
482
+ - fixtures/collections-app/source/blog2/2011-01-02-another-article.html.markdown
483
+ - fixtures/collections-app/source/index.html.erb
443
484
  - fixtures/content-for-app/config.rb
444
485
  - fixtures/content-for-app/source/content_for_erb.html.erb
445
486
  - fixtures/content-for-app/source/content_for_haml.html.haml
@@ -554,6 +595,7 @@ files:
554
595
  - fixtures/frontmatter-app/source/front-matter-change.html.erb
555
596
  - fixtures/frontmatter-app/source/front-matter-encoding.html.erb
556
597
  - fixtures/frontmatter-app/source/front-matter-line-2.html.erb
598
+ - fixtures/frontmatter-app/source/front-matter-pandoc.html.md.erb
557
599
  - fixtures/frontmatter-app/source/json-front-matter-2.php.erb
558
600
  - fixtures/frontmatter-app/source/json-front-matter-encoding.html.erb
559
601
  - fixtures/frontmatter-app/source/json-front-matter-line-2.html.erb
@@ -779,11 +821,6 @@ files:
779
821
  - fixtures/more-ignore-app/source/plain.html
780
822
  - fixtures/more-ignore-app/source/reports/another.html
781
823
  - fixtures/more-ignore-app/source/reports/index.html
782
- - fixtures/more-instance-vars-app/config.rb
783
- - fixtures/more-instance-vars-app/source/_vartial.erb
784
- - fixtures/more-instance-vars-app/source/instance-var-set.html.erb
785
- - fixtures/more-instance-vars-app/source/layout.erb
786
- - fixtures/more-instance-vars-app/source/no-instance-var.html.erb
787
824
  - fixtures/more-markdown-app/source/layouts/layout.erb
788
825
  - fixtures/more-markdown-app/source/with_layout.html.markdown
789
826
  - fixtures/more-markdown-app/source/with_layout_erb.html.markdown.erb
@@ -869,6 +906,18 @@ files:
869
906
  - fixtures/page-helper-layout-block-app/source/layouts/layout.erb
870
907
  - fixtures/page-helper-layout-block-app/source/path/child.html.erb
871
908
  - fixtures/page-helper-layout-block-app/source/path/index.html.erb
909
+ - fixtures/paginate-app/config.rb
910
+ - fixtures/paginate-app/source/archive/2011/index.html.erb
911
+ - fixtures/paginate-app/source/blog/2011-01-01-test-article.html.markdown
912
+ - fixtures/paginate-app/source/blog/2011-01-02-test-article.html.markdown
913
+ - fixtures/paginate-app/source/blog/2011-01-03-test-article.html.markdown
914
+ - fixtures/paginate-app/source/blog/2011-01-04-test-article.html.markdown
915
+ - fixtures/paginate-app/source/blog/2011-01-05-test-article.html.markdown
916
+ - fixtures/paginate-app/source/blog/2011-02-01-test-article.html.markdown
917
+ - fixtures/paginate-app/source/blog/2011-02-02-test-article.html.markdown
918
+ - fixtures/paginate-app/source/index.html.erb
919
+ - fixtures/paginate-app/source/tag.html.erb
920
+ - fixtures/partial-chained_templates-app/config.rb
872
921
  - fixtures/partials-app/config.rb
873
922
  - fixtures/partials-app/source/_code_snippet.html
874
923
  - fixtures/partials-app/source/_locals.erb
@@ -1063,6 +1112,11 @@ files:
1063
1112
  - lib/middleman-core/configuration.rb
1064
1113
  - lib/middleman-core/contracts.rb
1065
1114
  - lib/middleman-core/core_extensions.rb
1115
+ - lib/middleman-core/core_extensions/collections.rb
1116
+ - lib/middleman-core/core_extensions/collections/lazy_root.rb
1117
+ - lib/middleman-core/core_extensions/collections/lazy_step.rb
1118
+ - lib/middleman-core/core_extensions/collections/pagination.rb
1119
+ - lib/middleman-core/core_extensions/collections/step_context.rb
1066
1120
  - lib/middleman-core/core_extensions/data.rb
1067
1121
  - lib/middleman-core/core_extensions/default_helpers.rb
1068
1122
  - lib/middleman-core/core_extensions/external_helpers.rb
@@ -1170,7 +1224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1170
1224
  version: 1.3.1
1171
1225
  requirements: []
1172
1226
  rubyforge_project:
1173
- rubygems_version: 2.2.2
1227
+ rubygems_version: 2.4.3
1174
1228
  signing_key:
1175
1229
  specification_version: 4
1176
1230
  summary: Hand-crafted frontend development
@@ -1190,6 +1244,8 @@ test_files:
1190
1244
  - features/cli_extension.feature
1191
1245
  - features/cli_init.feature
1192
1246
  - features/coffee-script.feature
1247
+ - features/collections.feature
1248
+ - features/console.feature
1193
1249
  - features/content_for.feature
1194
1250
  - features/content_type.feature
1195
1251
  - features/custom-source.feature
@@ -1235,12 +1291,12 @@ test_files:
1235
1291
  - features/more-extensionless_text_files.feature
1236
1292
  - features/more-frontmatter_page_settings.feature
1237
1293
  - features/more-ignore.feature
1238
- - features/more-instance_vars.feature
1239
1294
  - features/more-sitemap_traversal.feature
1240
1295
  - features/more-wildcard_page_helper.feature
1241
1296
  - features/mount_rack.feature
1242
1297
  - features/multiple-sources.feature
1243
1298
  - features/nested_layouts.feature
1299
+ - features/paginate.feature
1244
1300
  - features/partials.feature
1245
1301
  - features/preview_changes.feature
1246
1302
  - features/proxy_pages.feature
@@ -1260,13 +1316,17 @@ test_files:
1260
1316
  - features/unicode_filenames.feature
1261
1317
  - features/v4_extension_callbacks.feature
1262
1318
  - features/wildcard_page_helper.feature
1319
+ - features/working_directory.feature
1263
1320
  - fixtures/asset-hash-app/config.rb
1264
1321
  - fixtures/asset-hash-app/lib/middleware.rb
1322
+ - fixtures/asset-hash-app/source/api.json.erb
1265
1323
  - fixtures/asset-hash-app/source/apple-touch-icon.png
1266
1324
  - fixtures/asset-hash-app/source/favicon.ico
1267
1325
  - fixtures/asset-hash-app/source/images/100px.gif
1268
1326
  - fixtures/asset-hash-app/source/images/100px.jpg
1269
1327
  - fixtures/asset-hash-app/source/images/100px.png
1328
+ - fixtures/asset-hash-app/source/images/200px.jpg
1329
+ - fixtures/asset-hash-app/source/images/300px.jpg
1270
1330
  - fixtures/asset-hash-app/source/index.html.erb
1271
1331
  - fixtures/asset-hash-app/source/javascripts/application.js
1272
1332
  - fixtures/asset-hash-app/source/layout.erb
@@ -1275,6 +1335,7 @@ test_files:
1275
1335
  - fixtures/asset-hash-app/source/stylesheets/_partial.sass
1276
1336
  - fixtures/asset-hash-app/source/stylesheets/site.css.scss
1277
1337
  - fixtures/asset-hash-app/source/stylesheets/uses_partials.css.sass
1338
+ - fixtures/asset-hash-app/source/subdir/api.json.erb
1278
1339
  - fixtures/asset-hash-app/source/subdir/index.html.erb
1279
1340
  - fixtures/asset-hash-host-app/config.rb
1280
1341
  - fixtures/asset-hash-host-app/source/images/100px.gif
@@ -1366,6 +1427,12 @@ test_files:
1366
1427
  - fixtures/coffeescript-app/source/inline-coffeescript.html.haml
1367
1428
  - fixtures/coffeescript-app/source/javascripts/broken-coffee.js.coffee
1368
1429
  - fixtures/coffeescript-app/source/javascripts/coffee_test.js.coffee
1430
+ - fixtures/collections-app/config.rb
1431
+ - fixtures/collections-app/source/blog1/2011-01-01-new-article.html.markdown
1432
+ - fixtures/collections-app/source/blog1/2011-01-02-another-article.html.markdown
1433
+ - fixtures/collections-app/source/blog2/2011-01-01-new-article.html.markdown
1434
+ - fixtures/collections-app/source/blog2/2011-01-02-another-article.html.markdown
1435
+ - fixtures/collections-app/source/index.html.erb
1369
1436
  - fixtures/content-for-app/config.rb
1370
1437
  - fixtures/content-for-app/source/content_for_erb.html.erb
1371
1438
  - fixtures/content-for-app/source/content_for_haml.html.haml
@@ -1480,6 +1547,7 @@ test_files:
1480
1547
  - fixtures/frontmatter-app/source/front-matter-change.html.erb
1481
1548
  - fixtures/frontmatter-app/source/front-matter-encoding.html.erb
1482
1549
  - fixtures/frontmatter-app/source/front-matter-line-2.html.erb
1550
+ - fixtures/frontmatter-app/source/front-matter-pandoc.html.md.erb
1483
1551
  - fixtures/frontmatter-app/source/json-front-matter-2.php.erb
1484
1552
  - fixtures/frontmatter-app/source/json-front-matter-encoding.html.erb
1485
1553
  - fixtures/frontmatter-app/source/json-front-matter-line-2.html.erb
@@ -1705,11 +1773,6 @@ test_files:
1705
1773
  - fixtures/more-ignore-app/source/plain.html
1706
1774
  - fixtures/more-ignore-app/source/reports/another.html
1707
1775
  - fixtures/more-ignore-app/source/reports/index.html
1708
- - fixtures/more-instance-vars-app/config.rb
1709
- - fixtures/more-instance-vars-app/source/_vartial.erb
1710
- - fixtures/more-instance-vars-app/source/instance-var-set.html.erb
1711
- - fixtures/more-instance-vars-app/source/layout.erb
1712
- - fixtures/more-instance-vars-app/source/no-instance-var.html.erb
1713
1776
  - fixtures/more-markdown-app/source/layouts/layout.erb
1714
1777
  - fixtures/more-markdown-app/source/with_layout.html.markdown
1715
1778
  - fixtures/more-markdown-app/source/with_layout_erb.html.markdown.erb
@@ -1795,6 +1858,18 @@ test_files:
1795
1858
  - fixtures/page-helper-layout-block-app/source/layouts/layout.erb
1796
1859
  - fixtures/page-helper-layout-block-app/source/path/child.html.erb
1797
1860
  - fixtures/page-helper-layout-block-app/source/path/index.html.erb
1861
+ - fixtures/paginate-app/config.rb
1862
+ - fixtures/paginate-app/source/archive/2011/index.html.erb
1863
+ - fixtures/paginate-app/source/blog/2011-01-01-test-article.html.markdown
1864
+ - fixtures/paginate-app/source/blog/2011-01-02-test-article.html.markdown
1865
+ - fixtures/paginate-app/source/blog/2011-01-03-test-article.html.markdown
1866
+ - fixtures/paginate-app/source/blog/2011-01-04-test-article.html.markdown
1867
+ - fixtures/paginate-app/source/blog/2011-01-05-test-article.html.markdown
1868
+ - fixtures/paginate-app/source/blog/2011-02-01-test-article.html.markdown
1869
+ - fixtures/paginate-app/source/blog/2011-02-02-test-article.html.markdown
1870
+ - fixtures/paginate-app/source/index.html.erb
1871
+ - fixtures/paginate-app/source/tag.html.erb
1872
+ - fixtures/partial-chained_templates-app/config.rb
1798
1873
  - fixtures/partials-app/config.rb
1799
1874
  - fixtures/partials-app/source/_code_snippet.html
1800
1875
  - fixtures/partials-app/source/_locals.erb
@@ -1,18 +0,0 @@
1
- Feature: Instance Vars
2
- In order to share data with layouts and partials via instance variables
3
-
4
- Scenario: Setting an instance var in a template should be visible in its layout
5
- Given the Server is running at "more-instance-vars-app"
6
- When I go to "/instance-var-set.html"
7
- Then I should see "Var is 100"
8
-
9
- Scenario: Setting an instance var in a template should be visible in a partial
10
- Given the Server is running at "more-instance-vars-app"
11
- When I go to "/instance-var-set.html"
12
- Then I should see "My var is here!"
13
-
14
- Scenario: Setting an instance var in one file should not be visible in another
15
- Given the Server is running at "more-instance-vars-app"
16
- When I go to "/instance-var-set.html"
17
- When I go to "/no-instance-var.html"
18
- Then I should see "No var..."
@@ -1,5 +0,0 @@
1
- <% if @my_var %>
2
- My var is here!
3
- <% else %>
4
- No var...
5
- <% end %>
@@ -1,2 +0,0 @@
1
- <% @my_var = 100 %>
2
- <%= partial 'vartial' %>
@@ -1,3 +0,0 @@
1
- Var is <%= @my_var %>
2
-
3
- <%= yield %>
@@ -1 +0,0 @@
1
- <%= partial 'vartial' %>