Sha256: 457a661e9f880c965c3c73a74d9c5b9db8a0baeec1c2eafc384f13c096da1697

Contents?: true

Size: 440 Bytes

Versions: 35

Compression:

Stored size: 440 Bytes

Contents

require 'spec_helper'

describe EmailLink do
  it_behaves_like 'search_container'

  let(:email_link) { EmailLink.new(Id: 5) }

  describe 'filter' do
    it 'returns a filter for the email link' do
      expect(email_link.filter).to eq "EmailLink Eq '#{email_link.id}'"
    end    
  end  

  describe 'listing_search_role' do
    it 'returns a symbol' do
      expect(EmailLink.new().listing_search_role).to eq(:public)
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
spark_api-1.6.3 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.6.2 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.6.1 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.5.7 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.6.0 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.5.6 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.5.5 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.5.4 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.5.3 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.5.2 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.5.1 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.5.0 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.4.34 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.4.32 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.4.31 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.4.29 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.4.28 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.4.27 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.4.26 spec/unit/spark_api/models/email_link_spec.rb
spark_api-1.4.25 spec/unit/spark_api/models/email_link_spec.rb