Sha256: 359fb8c6e813dd02503f28a0c1e71c21d2119167e25c02b3ce30a0f8b4295723

Contents?: true

Size: 339 Bytes

Versions: 13

Compression:

Stored size: 339 Bytes

Contents

require 'tilt'
require 'wlang/tilt'
describe 'WLang integration with tilt' do

  it 'allows invoking tilt directly' do
    Tilt.new(hello_path.to_s).render(:who => "world").should eq("Hello world!")
  end

  it 'allows specifying the dialect' do
    Tilt.new(hello_path.to_s, :dialect => Upcasing).render.should eq("Hello WHO!")
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wlang-3.0.1 spec/integration/tilt/test_wlang_template.rb
wlang-2.3.1 spec/integration/tilt/test_wlang_template.rb
wlang-2.3.0 spec/integration/tilt/test_wlang_template.rb
wlang-2.2.4 spec/integration/tilt/test_wlang_template.rb
wlang-2.2.3 spec/integration/tilt/test_wlang_template.rb
wlang-2.2.2 spec/integration/tilt/test_wlang_template.rb
wlang-2.2.1 spec/integration/tilt/test_wlang_template.rb
wlang-2.2.0 spec/integration/tilt/test_wlang_template.rb
wlang-2.1.2 spec/integration/tilt/test_wlang_template.rb
wlang-2.1.1 spec/integration/tilt/test_wlang_template.rb
wlang-2.1.0 spec/integration/tilt/test_wlang_template.rb
wlang-2.0.1 spec/integration/tilt/test_wlang_template.rb
wlang-2.0.0 spec/integration/tilt/test_wlang_template.rb