Sha256: 31fe8a40c62e56a6f909b8e29b8ec9a126dafc96e506246cb10374f025ad5992

Contents?: true

Size: 350 Bytes

Versions: 6

Compression:

Stored size: 350 Bytes

Contents

require 'spec_helper'

describe 'Editor', :js => true do
  before do
    sign_in create(:admin_user)
    visit new_admin_page_path
  end

  it 'adds the input as an html_editor input' do
    expect(page).to have_selector('li.html_editor')
  end

  it 'intitalizes the editor' do
    expect(page).to have_selector('li.html_editor .toolbar')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_admin_editor-1.1.0 spec/requests/editor_request_spec.rb
active_admin_editor-1.0.6 spec/requests/editor_request_spec.rb
active_admin_editor-1.0.5 spec/requests/editor_request_spec.rb
active_admin_editor-1.0.4 spec/requests/editor_request_spec.rb
active_admin_editor-1.0.3 spec/requests/editor_request_spec.rb
active_admin_editor-1.0.1 spec/requests/editor_request_spec.rb