Sha256: 2dfb133747bdb6d65b203a4af81b62aa8b80b54f2506c6b50d5573416a0a63a6

Contents?: true

Size: 720 Bytes

Versions: 7

Compression:

Stored size: 720 Bytes

Contents

require "spec_helper"

module Refinery
  describe "dialog", :type => :feature do
    refinery_login

    context "links" do
      it "have iframe src" do
        visit refinery.admin_dialog_path('Link')
        expect(page).to have_selector("iframe[src='/refinery/pages_dialogs/link_to']")
      end
    end

    context "images" do
      it "have iframe src" do
        visit refinery.admin_dialog_path('Image')
        expect(page).to have_selector("iframe[src='/refinery/images/insert?modal=true']")
      end
    end

    context "a" do
      it "404s" do
        expect_any_instance_of(Admin::DialogsController).to receive(:error_404).once

        visit refinery.admin_dialog_path('a')
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-core-3.0.6 spec/features/refinery/admin/dialogs_spec.rb
refinerycms-core-3.0.5 spec/features/refinery/admin/dialogs_spec.rb
refinerycms-core-3.0.4 spec/features/refinery/admin/dialogs_spec.rb
refinerycms-core-3.0.3 spec/features/refinery/admin/dialogs_spec.rb
refinerycms-core-3.0.2 spec/features/refinery/admin/dialogs_spec.rb
refinerycms-core-3.0.1 spec/features/refinery/admin/dialogs_spec.rb
refinerycms-core-3.0.0 spec/features/refinery/admin/dialogs_spec.rb