test/test_helper.rb
def assert_has_publisher_metadata(options)
    within(".app-c-publisher-metadata") do
      assert_has_published_dates(options[:first_published], options[:last_updated], history_link: options[:history_link])
      assert_has_publisher_metadata_other(options[:metadata])
    end
  end
# Make the Capybara DSL available in all integration tests
Make the Capybara DSL available in all integration tests
Make the Capybara DSL available in all integration tests
def assert_has_publisher_metadata(options)
    within(".app-c-publisher-metadata") do
      assert_has_published_dates(options[:first_published], options[:last_updated], history_link: options[:history_link])
      assert_has_publisher_metadata_other(options[:metadata])
    end
  end
def assert_has_publisher_metadata ( options ) within ( ".app-c-publisher-metadata" ) do assert_has_published_dates ( options [ :first_published ] , options [ :last_updated ] , history_link : options [ :history_link ] ) assert_has_publisher_metadata_other ( options [ :metadata ] ) end end
Make the Capybara DSL available in all integration tests
Make the Capybara DSL available in all integration tests
options