Sha256: 4f76b3ba8d4e4d08b99c22fe8304a78563482580996213b48d445741bab34e11

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

require 'spec_helper'

describe ViewTypesController do
  render_views

  describe 'supported view types' do
    after :each do
      response.should be_success
    end

    it 'allows to use the section helper in ERB views' do
      get :erb
      response.body.strip.should == 'Foo partial content'
    end

    it 'allows to use the section helper in HAML views' do
      get :haml
      response.body.strip.should == 'Foo partial content'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sections_rails-0.7.1 spec/controllers/view_types_controller_spec.rb
sections_rails-0.7.0 spec/controllers/view_types_controller_spec.rb
sections_rails-0.6.12 spec/controllers/view_types_controller_spec.rb
sections_rails-0.6.11 spec/controllers/view_types_controller_spec.rb