Sha256: b9ac46956508443f06be88ab692caf75610a40fd2ecd46ab00653f51dec3368d

Contents?: true

Size: 461 Bytes

Versions: 9

Compression:

Stored size: 461 Bytes

Contents

require 'spec_helper'

class PartialsController < ActionController::Base

  def index
  end

end

describe PartialsController, type: :controller 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
    expect(response.body).to have_selector('#footnotes_debug #partials_debug_info table tr', :visible => false, :count => 2)
  end


end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rails-footnotes-7.1.0 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-7.0.1 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-7.0.0 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-5.0.0 spec/controllers/partials_note_controller_spec.rb
rails6-footnotes-5.0.2 spec/controllers/partials_note_controller_spec.rb
rails6-footnotes-5.0.1 spec/controllers/partials_note_controller_spec.rb
rails6-footnotes-5.0.0 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.1.8 spec/controllers/partials_note_controller_spec.rb
rails-footnotes-4.1.7 spec/controllers/partials_note_controller_spec.rb