Sha256: 134afa504640bec5de23c3ffa61cc349484cda082a33606a21f2a069e25d3578

Contents?: true

Size: 732 Bytes

Versions: 111

Compression:

Stored size: 732 Bytes

Contents

require 'test_helper'

class TransactionEditionTest < ActiveSupport::TestCase

  setup do
    @artefact = FactoryGirl.create(:artefact)
  end

  context "indexable_content" do
    should "include the introduction without markup" do
      transaction = FactoryGirl.create(:transaction_edition, introduction: "## introduction", more_information: "", panopticon_id: @artefact.id)
      assert_equal "introduction", transaction.indexable_content
    end

    should "include the more_information without markup" do
      transaction = FactoryGirl.create(:transaction_edition, more_information: "## more info", introduction: "", panopticon_id: @artefact.id)
      assert_equal "more info", transaction.indexable_content
    end
  end
end

Version data entries

111 entries across 111 versions & 1 rubygems

Version Path
govuk_content_models-28.8.0 test/models/transaction_edition_test.rb
govuk_content_models-28.7.1 test/models/transaction_edition_test.rb
govuk_content_models-28.7.0 test/models/transaction_edition_test.rb
govuk_content_models-28.6.2 test/models/transaction_edition_test.rb
govuk_content_models-28.6.1 test/models/transaction_edition_test.rb
govuk_content_models-28.6.0 test/models/transaction_edition_test.rb
govuk_content_models-28.5.0 test/models/transaction_edition_test.rb
govuk_content_models-28.4.0 test/models/transaction_edition_test.rb
govuk_content_models-28.3.0 test/models/transaction_edition_test.rb
govuk_content_models-28.2.0 test/models/transaction_edition_test.rb
govuk_content_models-28.1.0 test/models/transaction_edition_test.rb
govuk_content_models-28.0.1 test/models/transaction_edition_test.rb
govuk_content_models-28.0.0 test/models/transaction_edition_test.rb
govuk_content_models-27.2.0 test/models/transaction_edition_test.rb
govuk_content_models-27.1.0 test/models/transaction_edition_test.rb
govuk_content_models-27.0.0 test/models/transaction_edition_test.rb
govuk_content_models-26.2.0 test/models/transaction_edition_test.rb
govuk_content_models-26.1.0 test/models/transaction_edition_test.rb
govuk_content_models-26.0.0 test/models/transaction_edition_test.rb
govuk_content_models-25.0.0 test/models/transaction_edition_test.rb