Sha256: 5e5ad9183ccb82ecba860696e18d4897b341becc78f6b31a8848f27fa97d9d53

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

require 'helper'

class SlimFamilyEnginesTest < ActionDispatch::IntegrationTest

  context "skim engine" do
    should 'setup role attribute' do
      get("/assets/application.js")

      assert_match /<div role=\\"implicitly_defined\\">/, response.body
      assert_match /<div role=\\"explicitly_defined\\">/, response.body
    end
  end

  context 'slim engine' do
    should 'setup role attribute' do
      get "/"

      assert_tag  :tag => 'div', :attributes => { :role => 'implicitly_defined' }
      assert_tag  :tag => 'div', :attributes => { :role => 'explicitly_defined' }
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
role-rails-1.2.0 test/integration/slim_family_engines_test.rb