nanoc3 3.2.0a4 → 3.2.0b1
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.md +20 -2
- data/README.md +7 -3
- data/bin/nanoc3 +1 -3
- data/lib/nanoc3.rb +1 -13
- data/lib/nanoc3/base/compilation/filter.rb +21 -0
- data/lib/nanoc3/base/compilation/item_rep_recorder_proxy.rb +1 -3
- data/lib/nanoc3/base/compilation/outdatedness_checker.rb +1 -1
- data/lib/nanoc3/base/compilation/rule_memory_calculator.rb +0 -2
- data/lib/nanoc3/base/compilation/rules_collection.rb +37 -13
- data/lib/nanoc3/base/directed_graph.rb +3 -3
- data/lib/nanoc3/base/memoization.rb +6 -9
- data/lib/nanoc3/base/source_data/code_snippet.rb +2 -1
- data/lib/nanoc3/base/source_data/configuration.rb +7 -3
- data/lib/nanoc3/base/source_data/item.rb +52 -10
- data/lib/nanoc3/base/source_data/layout.rb +28 -1
- data/lib/nanoc3/base/source_data/site.rb +14 -3
- data/lib/nanoc3/cli.rb +98 -6
- data/lib/nanoc3/cli/{base.rb → command.rb} +117 -153
- data/lib/nanoc3/cli/commands/autocompile.rb +20 -48
- data/lib/nanoc3/cli/commands/compile.rb +32 -48
- data/lib/nanoc3/cli/commands/create_item.rb +21 -37
- data/lib/nanoc3/cli/commands/create_layout.rb +18 -36
- data/lib/nanoc3/cli/commands/create_site.rb +15 -34
- data/lib/nanoc3/cli/commands/debug.rb +17 -31
- data/lib/nanoc3/cli/commands/info.rb +14 -29
- data/lib/nanoc3/cli/commands/nanoc.rb +37 -0
- data/lib/nanoc3/cli/commands/update.rb +21 -44
- data/lib/nanoc3/cli/commands/view.rb +18 -44
- data/lib/nanoc3/cli/commands/watch.rb +16 -31
- data/lib/nanoc3/data_sources/filesystem.rb +25 -6
- data/lib/nanoc3/data_sources/filesystem_unified.rb +5 -5
- data/lib/nanoc3/extra/auto_compiler.rb +1 -0
- data/lib/nanoc3/extra/file_proxy.rb +0 -1
- data/lib/nanoc3/filters.rb +2 -0
- data/lib/nanoc3/filters/asciidoc.rb +16 -36
- data/lib/nanoc3/filters/bluecloth.rb +2 -2
- data/lib/nanoc3/filters/coderay.rb +2 -2
- data/lib/nanoc3/filters/colorize_syntax.rb +18 -5
- data/lib/nanoc3/filters/erb.rb +2 -2
- data/lib/nanoc3/filters/erubis.rb +2 -2
- data/lib/nanoc3/filters/haml.rb +2 -2
- data/lib/nanoc3/filters/kramdown.rb +2 -2
- data/lib/nanoc3/filters/less.rb +32 -1
- data/lib/nanoc3/filters/markaby.rb +2 -2
- data/lib/nanoc3/filters/maruku.rb +2 -2
- data/lib/nanoc3/filters/mustache.rb +2 -2
- data/lib/nanoc3/filters/rainpress.rb +2 -2
- data/lib/nanoc3/filters/rdiscount.rb +4 -3
- data/lib/nanoc3/filters/rdoc.rb +10 -6
- data/lib/nanoc3/filters/redcarpet.rb +2 -2
- data/lib/nanoc3/filters/redcloth.rb +2 -2
- data/lib/nanoc3/filters/rubypants.rb +2 -2
- data/lib/nanoc3/filters/sass.rb +44 -52
- data/lib/nanoc3/filters/slim.rb +2 -2
- data/lib/nanoc3/filters/typogruby.rb +2 -2
- data/lib/nanoc3/filters/uglify_js.rb +42 -0
- data/nanoc3.gemspec +1 -1
- data/tasks/test.rake +6 -0
- data/test/base/core_ext/array_spec.rb +0 -2
- data/test/base/core_ext/hash_spec.rb +0 -2
- data/test/base/core_ext/pathname_spec.rb +0 -2
- data/test/base/core_ext/string_spec.rb +0 -2
- data/test/base/test_checksum_store.rb +0 -2
- data/test/base/test_code_snippet.rb +0 -2
- data/test/base/test_compiler.rb +2 -4
- data/test/base/test_compiler_dsl.rb +1 -3
- data/test/base/test_context.rb +0 -2
- data/test/base/test_data_source.rb +0 -2
- data/test/base/test_dependency_tracker.rb +0 -2
- data/test/base/test_directed_graph.rb +0 -2
- data/test/base/test_filter.rb +0 -2
- data/test/base/test_item.rb +19 -4
- data/test/base/test_item_rep.rb +0 -2
- data/test/base/test_layout.rb +19 -4
- data/test/base/test_memoization.rb +39 -2
- data/test/base/test_notification_center.rb +0 -2
- data/test/base/test_outdatedness_checker.rb +31 -2
- data/test/base/test_plugin.rb +0 -2
- data/test/base/test_rule.rb +0 -2
- data/test/base/test_rule_context.rb +0 -2
- data/test/base/test_site.rb +30 -3
- data/test/cli/commands/test_compile.rb +24 -3
- data/test/cli/commands/test_create_item.rb +5 -3
- data/test/cli/commands/test_create_layout.rb +4 -4
- data/test/cli/commands/test_create_site.rb +5 -5
- data/test/cli/commands/test_help.rb +3 -3
- data/test/cli/commands/test_info.rb +2 -3
- data/test/cli/commands/test_update.rb +0 -2
- data/test/cli/test_cli.rb +40 -0
- data/test/cli/test_logger.rb +0 -2
- data/test/data_sources/test_filesystem.rb +0 -2
- data/test/data_sources/test_filesystem_unified.rb +32 -58
- data/test/data_sources/test_filesystem_verbose.rb +0 -2
- data/test/extra/core_ext/test_enumerable.rb +0 -2
- data/test/extra/core_ext/test_time.rb +0 -2
- data/test/extra/deployers/test_rsync.rb +0 -2
- data/test/extra/test_auto_compiler.rb +5 -7
- data/test/extra/test_file_proxy.rb +0 -2
- data/test/extra/test_vcs.rb +0 -2
- data/test/extra/validators/test_links.rb +0 -2
- data/test/extra/validators/test_w3c.rb +0 -2
- data/test/filters/test_asciidoc.rb +0 -2
- data/test/filters/test_bluecloth.rb +0 -2
- data/test/filters/test_coderay.rb +0 -2
- data/test/filters/test_colorize_syntax.rb +49 -2
- data/test/filters/test_erb.rb +0 -2
- data/test/filters/test_erubis.rb +0 -2
- data/test/filters/test_haml.rb +0 -2
- data/test/filters/test_kramdown.rb +0 -2
- data/test/filters/test_less.rb +59 -5
- data/test/filters/test_markaby.rb +0 -2
- data/test/filters/test_maruku.rb +0 -2
- data/test/filters/test_mustache.rb +0 -2
- data/test/filters/test_rainpress.rb +0 -2
- data/test/filters/test_rdiscount.rb +0 -2
- data/test/filters/test_rdoc.rb +0 -2
- data/test/filters/test_redcarpet.rb +0 -2
- data/test/filters/test_redcloth.rb +0 -2
- data/test/filters/test_relativize_paths.rb +77 -24
- data/test/filters/test_rubypants.rb +0 -2
- data/test/filters/test_sass.rb +136 -10
- data/test/filters/test_slim.rb +0 -2
- data/test/filters/test_typogruby.rb +0 -2
- data/test/filters/test_uglify_js.rb +30 -0
- data/test/gem_loader.rb +11 -0
- data/test/helper.rb +3 -0
- data/test/helpers/test_blogging.rb +0 -2
- data/test/helpers/test_breadcrumbs.rb +0 -2
- data/test/helpers/test_capturing.rb +0 -2
- data/test/helpers/test_filtering.rb +0 -2
- data/test/helpers/test_html_escape.rb +0 -2
- data/test/helpers/test_link_to.rb +0 -2
- data/test/helpers/test_rendering.rb +0 -2
- data/test/helpers/test_tagging.rb +0 -2
- data/test/helpers/test_text.rb +0 -2
- data/test/helpers/test_xml_sitemap.rb +0 -2
- data/test/tasks/test_clean.rb +0 -2
- metadata +11 -9
- data/lib/nanoc3/cli/commands.rb +0 -16
- data/lib/nanoc3/cli/commands/help.rb +0 -71
- data/tasks/clean.rake +0 -11
@@ -1,5 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
require 'redcloth'
|
4
|
+
|
3
5
|
module Nanoc3::Filters
|
4
6
|
class RedCloth < Nanoc3::Filter
|
5
7
|
|
@@ -24,8 +26,6 @@ module Nanoc3::Filters
|
|
24
26
|
#
|
25
27
|
# @return [String] The filtered content
|
26
28
|
def run(content, params={})
|
27
|
-
require 'redcloth'
|
28
|
-
|
29
29
|
# Create formatter
|
30
30
|
r = ::RedCloth.new(content)
|
31
31
|
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
require 'rubypants'
|
4
|
+
|
3
5
|
module Nanoc3::Filters
|
4
6
|
class RubyPants < Nanoc3::Filter
|
5
7
|
|
@@ -10,8 +12,6 @@ module Nanoc3::Filters
|
|
10
12
|
#
|
11
13
|
# @return [String] The filtered content
|
12
14
|
def run(content, params={})
|
13
|
-
require 'rubypants'
|
14
|
-
|
15
15
|
# Get result
|
16
16
|
::RubyPants.new(content).to_html
|
17
17
|
end
|
data/lib/nanoc3/filters/sass.rb
CHANGED
@@ -1,8 +1,38 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
require 'sass'
|
4
|
+
require 'set'
|
5
|
+
|
3
6
|
module Nanoc3::Filters
|
4
7
|
class Sass < Nanoc3::Filter
|
5
8
|
|
9
|
+
class << self
|
10
|
+
# The current filter. This is definitely going to bite me if I ever get
|
11
|
+
# to multithreading nanoc.
|
12
|
+
attr_accessor :current
|
13
|
+
end
|
14
|
+
|
15
|
+
# Essentially the {Sass::Importers::Filesystem} but registering each
|
16
|
+
# import file path.
|
17
|
+
class SassFilesystemImporter < ::Sass::Importers::Filesystem
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
def _find(dir, name, options)
|
22
|
+
full_filename, syntax = find_real_file(dir, name)
|
23
|
+
return unless full_filename && File.readable?(full_filename)
|
24
|
+
|
25
|
+
filter = Nanoc3::Filters::Sass.current
|
26
|
+
item = filter.imported_filename_to_item(full_filename)
|
27
|
+
filter.depend_on([ item ]) unless item.nil?
|
28
|
+
|
29
|
+
options[:syntax] = syntax
|
30
|
+
options[:filename] = full_filename
|
31
|
+
options[:importer] = self
|
32
|
+
::Sass::Engine.new(File.read(full_filename), options)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
6
36
|
# Runs the content through [Sass](http://sass-lang.com/).
|
7
37
|
# Parameters passed to this filter will be passed on to Sass.
|
8
38
|
#
|
@@ -10,64 +40,26 @@ module Nanoc3::Filters
|
|
10
40
|
#
|
11
41
|
# @return [String] The filtered content
|
12
42
|
def run(content, params={})
|
13
|
-
|
14
|
-
|
15
|
-
# Add imported_filename read accessor to ImportNode
|
16
|
-
# … but… but… nex3 said I could monkey patch it! :(
|
17
|
-
methods = ::Sass::Tree::ImportNode.instance_methods
|
18
|
-
if !methods.include?(:import_filename) && !methods.include?('import_filename')
|
19
|
-
::Sass::Tree::ImportNode.send(:attr_reader, :imported_filename)
|
20
|
-
end
|
21
|
-
|
22
|
-
# Get options
|
43
|
+
# Build options
|
23
44
|
options = params.dup
|
24
|
-
sass_filename = options[:filename] ||
|
45
|
+
sass_filename = options[:filename] ||
|
46
|
+
(@item && @item[:content_filename])
|
25
47
|
options[:filename] ||= sass_filename
|
48
|
+
options[:filesystem_importer] ||=
|
49
|
+
Nanoc3::Filters::Sass::SassFilesystemImporter
|
26
50
|
|
27
|
-
#
|
51
|
+
# Render
|
28
52
|
engine = ::Sass::Engine.new(content, options)
|
53
|
+
self.class.current = self
|
54
|
+
engine.render
|
55
|
+
end
|
29
56
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
node = unprocessed_nodes.each { |n| break n }
|
36
|
-
unprocessed_nodes.delete(node)
|
37
|
-
|
38
|
-
# Add to list of import nodes if necessary
|
39
|
-
imported_nodes << node if node.is_a?(::Sass::Tree::ImportNode)
|
40
|
-
|
41
|
-
# Mark children of this node for processing
|
42
|
-
node.children.each { |c| unprocessed_nodes << c }
|
43
|
-
end
|
44
|
-
|
45
|
-
# Get import paths
|
46
|
-
import_paths = (options[:load_paths] || []).dup
|
47
|
-
import_paths.unshift(File.dirname(sass_filename)) if sass_filename
|
48
|
-
imported_filenames = imported_nodes.map { |node| node.imported_filename }
|
49
|
-
|
50
|
-
# Convert to items
|
51
|
-
imported_items = imported_filenames.map do |filename|
|
52
|
-
pathname = Pathname.new(filename)
|
53
|
-
next unless pathname.file?
|
54
|
-
normalized_filename = pathname.realpath
|
55
|
-
@items.find { |i| i[:content_filename] && Pathname.new(i[:content_filename]).realpath == normalized_filename }
|
56
|
-
end.compact
|
57
|
-
|
58
|
-
# Require compilation of each item
|
59
|
-
imported_items.each do |item|
|
60
|
-
# Notify
|
61
|
-
Nanoc3::NotificationCenter.post(:visit_started, item)
|
62
|
-
Nanoc3::NotificationCenter.post(:visit_ended, item)
|
63
|
-
|
64
|
-
# Raise unmet dependency error if item is not yet compiled
|
65
|
-
any_uncompiled_rep = item.reps.find { |r| !r.compiled? }
|
66
|
-
raise Nanoc3::Errors::UnmetDependency.new(any_uncompiled_rep) if any_uncompiled_rep
|
57
|
+
def imported_filename_to_item(filename)
|
58
|
+
path = Pathname.new(filename).realpath
|
59
|
+
@items.find do |i|
|
60
|
+
next if i[:content_filename].nil?
|
61
|
+
Pathname.new(i[:content_filename]).realpath == path
|
67
62
|
end
|
68
|
-
|
69
|
-
# Done
|
70
|
-
engine.render
|
71
63
|
end
|
72
64
|
|
73
65
|
end
|
data/lib/nanoc3/filters/slim.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
require 'slim'
|
4
|
+
|
3
5
|
module Nanoc3::Filters
|
4
6
|
|
5
7
|
# @since 3.2.0
|
@@ -12,8 +14,6 @@ module Nanoc3::Filters
|
|
12
14
|
#
|
13
15
|
# @return [String] The filtered content
|
14
16
|
def run(content, params={})
|
15
|
-
require 'slim'
|
16
|
-
|
17
17
|
# Create context
|
18
18
|
context = ::Nanoc3::Context.new(assigns)
|
19
19
|
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
require 'typogruby'
|
4
|
+
|
3
5
|
module Nanoc3::Filters
|
4
6
|
|
5
7
|
# @since 3.2.0
|
@@ -12,8 +14,6 @@ module Nanoc3::Filters
|
|
12
14
|
#
|
13
15
|
# @return [String] The filtered content
|
14
16
|
def run(content, params={})
|
15
|
-
require 'typogruby'
|
16
|
-
|
17
17
|
# Get result
|
18
18
|
::Typogruby.improve(content)
|
19
19
|
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'uglifier'
|
4
|
+
|
5
|
+
module Nanoc3::Filters
|
6
|
+
class UglifyJS < Nanoc3::Filter
|
7
|
+
|
8
|
+
# Runs the content through [UglifyJS](https://github.com/mishoo/UglifyJS/).
|
9
|
+
# This method optionally takes options to pass directly to Uglifier:
|
10
|
+
#
|
11
|
+
# {
|
12
|
+
# :mangle => true, # Mangle variables names
|
13
|
+
# :toplevel => false, # Mangle top-level variable names
|
14
|
+
# :except => [], # Variable names to be excluded from mangling
|
15
|
+
# :max_line_length => 32 * 1024, # Maximum line length
|
16
|
+
# :squeeze => true, # Squeeze code resulting in smaller, but less-readable code
|
17
|
+
# :seqs => true, # Reduce consecutive statements in blocks into single statement
|
18
|
+
# :dead_code => true, # Remove dead code (e.g. after return)
|
19
|
+
# :unsafe => false, # Optimizations known to be unsafe in some situations
|
20
|
+
# :copyright => true, # Show copyright message
|
21
|
+
# :beautify => false, # Ouput indented code
|
22
|
+
# :beautify_options => {
|
23
|
+
# :indent_level => 4,
|
24
|
+
# :indent_start => 0,
|
25
|
+
# :quote_keys => false,
|
26
|
+
# :space_colon => 0,
|
27
|
+
# :ascii_only => false
|
28
|
+
# }
|
29
|
+
# }
|
30
|
+
#
|
31
|
+
# @param [String] content The content to filter
|
32
|
+
#
|
33
|
+
# @option params [Array] :options ([]) A list of options to pass on to Uglifier
|
34
|
+
#
|
35
|
+
# @return [String] The filtered content
|
36
|
+
def run(content, params={})
|
37
|
+
# Add filename to load path
|
38
|
+
Uglifier.new(params).compile(content)
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
data/nanoc3.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.rdoc_options = [ '--main', 'README.md' ]
|
24
24
|
s.extra_rdoc_files = [ 'ChangeLog', 'LICENSE', 'README.md', 'NEWS.md' ]
|
25
25
|
|
26
|
-
s.add_runtime_dependency('cri', '
|
26
|
+
s.add_runtime_dependency('cri', '~> 2.0')
|
27
27
|
|
28
28
|
s.post_install_message = %q{------------------------------------------------------------------------------
|
29
29
|
Thanks for installing nanoc 3.2! Here are some resources to help you get
|
data/tasks/test.rake
CHANGED
@@ -11,6 +11,9 @@ test = namespace :test do
|
|
11
11
|
|
12
12
|
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/..'))
|
13
13
|
|
14
|
+
# require our test helper so we don't have to in each individual test
|
15
|
+
require 'test/helper'
|
16
|
+
|
14
17
|
MiniTest::Unit.autorun
|
15
18
|
|
16
19
|
test_files = Dir['test/**/*_spec.rb'] + Dir['test/**/test_*.rb']
|
@@ -25,6 +28,9 @@ test = namespace :test do
|
|
25
28
|
|
26
29
|
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/..'))
|
27
30
|
|
31
|
+
# require our test helper so we don't have to in each individual test
|
32
|
+
require 'test/helper'
|
33
|
+
|
28
34
|
MiniTest::Unit.autorun
|
29
35
|
|
30
36
|
test_files = Dir["test/#{dir}/**/*_spec.rb"] + Dir["test/#{dir}/**/test_*.rb"]
|
data/test/base/test_compiler.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
require 'test/helper'
|
4
|
-
|
5
3
|
class Nanoc3::CompilerTest < MiniTest::Unit::TestCase
|
6
4
|
|
7
5
|
include Nanoc3::TestHelpers
|
@@ -256,7 +254,7 @@ class Nanoc3::CompilerTest < MiniTest::Unit::TestCase
|
|
256
254
|
|
257
255
|
def test_disallow_routes_not_starting_with_slash
|
258
256
|
# Create site
|
259
|
-
Nanoc3::CLI
|
257
|
+
Nanoc3::CLI.run %w( create_site bar)
|
260
258
|
|
261
259
|
FileUtils.cd('bar') do
|
262
260
|
# Create routes
|
@@ -283,7 +281,7 @@ class Nanoc3::CompilerTest < MiniTest::Unit::TestCase
|
|
283
281
|
|
284
282
|
def test_load_should_be_idempotent
|
285
283
|
# Create site
|
286
|
-
Nanoc3::CLI
|
284
|
+
Nanoc3::CLI.run %w( create_site bar)
|
287
285
|
|
288
286
|
FileUtils.cd('bar') do
|
289
287
|
site = Nanoc3::Site.new('.')
|
@@ -1,7 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
require 'test/helper'
|
4
|
-
|
5
3
|
class Nanoc3::CompilerDSLTest < MiniTest::Unit::TestCase
|
6
4
|
|
7
5
|
include Nanoc3::TestHelpers
|
@@ -20,7 +18,7 @@ class Nanoc3::CompilerDSLTest < MiniTest::Unit::TestCase
|
|
20
18
|
|
21
19
|
def test_passthrough
|
22
20
|
# Create site
|
23
|
-
Nanoc3::CLI
|
21
|
+
Nanoc3::CLI.run %w( create_site bar)
|
24
22
|
FileUtils.cd('bar') do
|
25
23
|
# Create rep
|
26
24
|
item = Nanoc3::Item.new('foo', { :extension => 'bar' }, '/foo/')
|
data/test/base/test_context.rb
CHANGED
data/test/base/test_filter.rb
CHANGED
data/test/base/test_item.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
require 'test/helper'
|
4
|
-
|
5
3
|
class Nanoc3::ItemTest < MiniTest::Unit::TestCase
|
6
4
|
|
7
5
|
include Nanoc3::TestHelpers
|
@@ -22,10 +20,14 @@ class Nanoc3::ItemTest < MiniTest::Unit::TestCase
|
|
22
20
|
def test_frozen_identifier
|
23
21
|
item = Nanoc3::Item.new("foo", {}, '/foo')
|
24
22
|
|
25
|
-
|
23
|
+
raised = false
|
24
|
+
begin
|
26
25
|
item.identifier.chop!
|
26
|
+
rescue => error
|
27
|
+
raised = true
|
28
|
+
assert_equal "can't modify frozen string", error.message
|
27
29
|
end
|
28
|
-
|
30
|
+
assert raised, 'Should have raised when trying to modify a frozen string'
|
29
31
|
end
|
30
32
|
|
31
33
|
def test_lookup
|
@@ -161,4 +163,17 @@ class Nanoc3::ItemTest < MiniTest::Unit::TestCase
|
|
161
163
|
assert raised
|
162
164
|
end
|
163
165
|
|
166
|
+
def test_dump_and_load
|
167
|
+
item = Nanoc3::Item.new(
|
168
|
+
"foobar",
|
169
|
+
{ :a => { :b => 123 }},
|
170
|
+
'/foo/')
|
171
|
+
|
172
|
+
item = Marshal.load(Marshal.dump(item))
|
173
|
+
|
174
|
+
assert_equal '/foo/', item.identifier
|
175
|
+
assert_equal 'foobar', item.raw_content
|
176
|
+
assert_equal({ :a => { :b => 123 }}, item.attributes)
|
177
|
+
end
|
178
|
+
|
164
179
|
end
|