Sha256: be0fc1e604c986e82b75bdc833f41358e7fe44cb58723b4e174554373b1bf008

Contents?: true

Size: 498 Bytes

Versions: 9

Compression:

Stored size: 498 Bytes

Contents

require 'spec_helper'

class PartialsController < ActionController::Base

  def index
    prepend_view_path "#{Rails.root.join('spec', 'views')}"
  end

end

describe PartialsController do

  render_views

  before :all do
    Footnotes.enabled = true
  end

  after :all do
    Footnotes.enabled = false
  end

  it 'lists the rendered partials' do
    get :index
    response.body.should have_selector('#footnotes_debug #partials_debug_info table tr', :visible => false, :count => 2)
  end


end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails-footnotes-4.1.5 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.1.4 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.1.3 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.1.2 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.1.1 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.1.0 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.0.2 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.0.1 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.0.0 spec/controllers/partials_note_controller_spec.rb