Sha256: 21c954aac307cb763f301eac263add602c28579fb4ae2cad7a0209424ddcdaf6

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

require "assert"
require "much-slug"

module MuchSlug
  class UnitTests < Assert::Context
    desc "MuchSlug"
    setup do
      @module = MuchSlug
    end
    subject{ @module }

    should have_imeths :default_attribute, :default_preprocessor
    should have_imeths :default_separator, :default_allow_underscores
    should have_imeths :update_slugs

    should "know its default settings" do
      assert_equal "slug", subject.default_attribute
      assert_equal :to_s, subject.default_preprocessor
      assert_equal "-", subject.default_separator
      assert_equal false, subject.default_allow_underscores
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
much-slug-0.1.0 test/unit/much-slug_tests.rb