Sha256: f17a901cef0270d482224aad96ae466796f87d82ecff8ce2c1064e4d14f391df

Contents?: true

Size: 917 Bytes

Versions: 13

Compression:

Stored size: 917 Bytes

Contents

require File.dirname(__FILE__) + '/../integration_helper'

describe 'Site metafields' do

  include Rack::Test::Methods

  def app
    run_server
  end

  it 'returns all the values of the site metafields' do
    get '/basic'
    expect(last_response.body).to include 'Font=OpenSans'
    expect(last_response.body).to include 'Color scheme=white'
    expect(last_response.body).to include 'Facebook ID=FB42'
    expect(last_response.body).to include 'Google ID=G42'
    expect(last_response.body).to include 'API URL=https://api.github.com/repos/vmg/redcarpet/issues?state=closed'
    expect(last_response.body).to include 'Expires In=42'
  end

  it 'iterates over the metafields of a namespace' do
    get '/basic'
    expect(last_response.body).to include "<li class='property'>Facebook(facebook_id)=FB42</li>"
    expect(last_response.body).to include "<li class='property'>Google(google_id)=G42</li>"
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotivecms_steam-1.8.0.alpha2 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.8.0.alpha1 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.7.1 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.7.0 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.6.1 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.6.0 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.6.0.rc1 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.6.0.beta1 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.5.3 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.5.2 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.5.1 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.5.0 spec/integration/server/metafields_spec.rb
locomotivecms_steam-1.5.0.rc1 spec/integration/server/metafields_spec.rb