Sha256: b0ac054b4ecafdff68bad4b01817f8d1c117d8b01a34902871bf32807029bfc5
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
require 'spec_helper' describe Spotlight::MainNavigation, :type => :model do before do subject.exhibit = FactoryGirl.create(:exhibit) end it "should have a default_label" do subject.nav_type = :curated_features expect(subject.default_label).to eq "Curated Features" end it "should return the use the default label in the absence of a label" do expect(subject.label).to be_blank expect(subject.label_or_default).to eq subject.default_label subject.label = "something else" expect(subject.label_or_default).to eq "something else" end end
Version data entries
4 entries across 4 versions & 1 rubygems