Sha256: 42a382b19e7cd40cafc8fbc7cd350b6347eb3f35578f724be1fe7cbc9494a94e

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

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

Dir.glob('locales/*.yml') do |locale_file|
  describe "a locale file" do
    it_behaves_like 'a valid locale file', locale_file
  end
end

describe LegalDocs, "::privacy_policy" do
  it "has a title" do
    LegalDocs::privacy_policy.title.should == I18n.t(:'vendor.legal_docs.docs.privacy_policy.title')
  end

  it "has text" do
    LegalDocs::privacy_policy.text.should match /Privacy Policy/
  end

  it "provides all necessary interpolations for the content" do
    expect { LegalDocs::privacy_policy.text }.to_not raise_error(I18n::MissingInterpolationArgument)
  end
end

describe LegalDocs, "::terms_of_service" do
  it "has a title" do
    LegalDocs::terms_of_service.title.should == I18n.t(:'vendor.legal_docs.docs.terms_of_service.title')
  end

  it "has text" do
    LegalDocs::terms_of_service.text.should match /Terms of Service/
  end

  it "provides all necessary interpolations for the content" do
    expect { LegalDocs::terms_of_service.text }.to_not raise_error(I18n::MissingInterpolationArgument)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
legal-docs-0.0.3 spec/legal_docs_spec.rb