Sha256: 917969ab1e25ed34283adf3735203dd78921ee517f1516c79dafa82b2d04bce9
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
require 'test_helper' require 'espresso/extensions/haml' require 'example_model' class Haml::BufferTest < Test::Unit::TestCase context 'Haml::Buffer instance' do setup { @buffer = Haml::Buffer.new } { [ExampleModel.new(1)] => {'id' => 'example_model_1', 'class' => 'b-example-model'}, [NonModel.new, :prefix] => {'id' => 'prefix_non_model_6', 'class' => 'prefix_non_model'}, [ExampleModel.new(5, true)] => {'id' => 'example_model_5', 'class' => 'b-example-model b-example-model_safe'} }.each do |ref, result| should "parse #{ref.inspect} ref to #{result.inspect} " do assert_equal(result, @buffer.parse_object_ref(ref)) end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
espresso-framework-0.3.0 | test/espresso_extensions_haml_test.rb |
espresso-0.2.1 | test/espresso_extensions_haml_test.rb |