Sha256: fa7b2d271d9908db793200adefcc2e27d1184ac4f3b1f8f0d39a3a01c47416a7

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerScience < Test::Unit::TestCase
  def setup
    @tester = Faker::Science
  end

  def test_element
    assert @tester.element.match(/\w+/)
  end

  def test_element_symbol
    assert @tester.element.match(/\w{1,2}/)
  end

  def test_element_state
    assert @tester.element_state.match(/\w+/)
  end

  def test_element_subcategory
    assert @tester.element_subcategory.match(/\w+/)
  end

  def test_scientist
    assert @tester.scientist.match(/\w+/)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/test/faker/default/test_faker_science.rb