Sha256: d6b7756edc1dcfcb53746a1e1973a44cc63cbeaf65713f9c70c873e1769acba5

Contents?: true

Size: 468 Bytes

Versions: 20

Compression:

Stored size: 468 Bytes

Contents

require 'zendesk_apps_support'

describe ZendeskAppsSupport::Validations::Templates do

  it 'should have a jslint error when missing semicolon' do
    template = mock('AppFile', :relative_path => 'layout.hdbs', :read => "<style>")
    package = mock('Package', :template_files => [template])
    errors = ZendeskAppsSupport::Validations::Templates.call(package)

    errors.first().to_s.should eql "<style> tag in layout.hdbs. Use an app.css file instead."
  end

end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
zendesk_apps_support-1.12.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.11.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.10.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.9.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.8.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.7.1 spec/validations/templates_spec.rb
zendesk_apps_support-1.7.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.6.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.5.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.4.1 spec/validations/templates_spec.rb
zendesk_apps_support-1.3.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.2.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.1.4 spec/validations/templates_spec.rb
zendesk_apps_support-1.1.3 spec/validations/templates_spec.rb
zendesk_apps_support-1.1.2 spec/validations/templates_spec.rb
zendesk_apps_support-1.1.1 spec/validations/templates_spec.rb
zendesk_apps_support-1.1.0 spec/validations/templates_spec.rb
zendesk_apps_support-1.0.1 spec/validations/templates_spec.rb
zendesk_apps_support-0.3.3 spec/validations/templates_spec.rb
zendesk_apps_support-0.3.2 spec/validations/templates_spec.rb