Sha256: d9d6004e95492eeef1f041e7883bb3e1a647960e85f289bb5c2bd0e4b6fdaa0d

Contents?: true

Size: 573 Bytes

Versions: 18

Compression:

Stored size: 573 Bytes

Contents

# == Schema Information
#
# Table name: lentil_tags
#
#  id         :integer          not null, primary key
#  name       :string(255)
#  created_at :datetime         not null
#  updated_at :datetime         not null
#

require 'test_helper'

class TagTest < ActiveSupport::TestCase
  # test "the truth" do
  #   assert true
  # end

  test "Tag should have an image" do
    assert lentil_tags(:hunttesting).images.count > 0
  end
  
  test "Hashtags should be stripped" do
    tag = Lentil::Tag.new(name: '#hashtagTest')
    assert_equal "hashtagTest", tag.name
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
lentil-1.0.5 test/unit/lentil/tag_test.rb
lentil-1.0.4 test/unit/lentil/tag_test.rb
lentil-1.0.3 test/unit/lentil/tag_test.rb
lentil-1.0.2 test/unit/lentil/tag_test.rb
lentil-1.0.1 test/unit/lentil/tag_test.rb
lentil-1.0.0 test/unit/lentil/tag_test.rb
lentil-0.9.1 test/unit/lentil/tag_test.rb
lentil-0.9.0 test/unit/lentil/tag_test.rb
lentil-0.8.0 test/unit/lentil/tag_test.rb
lentil-0.7.1 test/unit/lentil/tag_test.rb
lentil-0.6.0 test/unit/lentil/tag_test.rb
lentil-0.5.2 test/unit/lentil/tag_test.rb
lentil-0.5.1 test/unit/lentil/tag_test.rb
lentil-0.5.0 test/unit/lentil/tag_test.rb
lentil-0.4.2 test/unit/lentil/tag_test.rb
lentil-0.4.0 test/unit/lentil/tag_test.rb
lentil-0.3.1 test/unit/lentil/tag_test.rb
lentil-0.3.0 test/unit/lentil/tag_test.rb