Sha256: 609c488a1b88124285943376222e7fcf5ece7235bc5a9cc0d48e81c43551f670

Contents?: true

Size: 622 Bytes

Versions: 3

Compression:

Stored size: 622 Bytes

Contents

require 'spec_helper'

module Spotlight
  describe "spotlight/blacklight_configurations/edit_sort_fields", :type => :view do
    let(:exhibit) { FactoryGirl.create(:exhibit) } 
    before do
      assign(:exhibit, exhibit)
      assign(:blacklight_configuration, exhibit.blacklight_configuration)
      allow(view).to receive_messages(current_exhibit: exhibit, translate_sort_fields: '' )
    end

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 spec/views/spotlight/blacklight_configuration/edit_sort_fields.html.erb_spec.rb
blacklight-spotlight-0.3.1 spec/views/spotlight/blacklight_configuration/edit_sort_fields.html.erb_spec.rb
blacklight-spotlight-0.3.0 spec/views/spotlight/blacklight_configuration/edit_sort_fields.html.erb_spec.rb