Sha256: 74b5538836fdd78d18ccff09fa08885c566038e69491f55ef7f51507a508cea1

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

require 'spec_helper'

module Spotlight
  describe "spotlight/appearances/edit", :type => :view do
    let(:exhibit) { FactoryGirl.create(:exhibit) } 
    let(:appearance) { Spotlight::Appearance.new(exhibit.blacklight_configuration) }
    before do
      assign(:exhibit, exhibit)
      assign(:appearance, appearance)
      allow(view).to receive_messages(current_exhibit: exhibit)
    end

    it "should have a disabled relevance sort option" do
      render

      expect(rendered).to have_selector "input[name='appearance[sort_fields][relevance][enable]'][disabled='disabled']"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.2.0 spec/views/spotlight/appearances/edit.html.erb_spec.rb