Sha256: 36f1d7c1219601e7b407bc0fd87d19afd4211d6d3ae541d35195ef06cb288a1c

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

# -*- coding: UTF-8 -*-
require 'spec_helper'

verify = lambda { |output|
   output.should =~ %r(var crunchy = "bacon")
}

theories =
  [
    {
      :page => "javascript-page.js",
      :simple_name => "javascript-page",
      :syntax => :javascript,
      :extension => '.js',
      :matcher => verify
    }
  ]

describe Awestruct::Handlers::TiltHandler.to_s + "-JavaScript" do
  let(:additional_config) { {:interpolate => true, :crunchy => 'bacon'} }
  it_should_behave_like "a handler", theories

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
awestruct-0.5.3 spec/javascript_handler_spec.rb
awestruct-0.5.2.1 spec/javascript_handler_spec.rb
awestruct-0.5.2 spec/javascript_handler_spec.rb
awestruct-0.5.1 spec/javascript_handler_spec.rb
awestruct-0.5.1a spec/javascript_handler_spec.rb
awestruct-0.5.0 spec/javascript_handler_spec.rb
awestruct-0.5.0.cr spec/javascript_handler_spec.rb