Sha256: ea10dd3aac60b067c1f72b2aecdc49a506c79582456878635006fdf9c302aa54

Contents?: true

Size: 359 Bytes

Versions: 23

Compression:

Stored size: 359 Bytes

Contents

require 'test_helper'

class FriendlyTest < ViewCase
  fixtures :all

  setup :sign_in
  teardown :teardown

  def test_match_correct_path
    visit adminpanel.product_path(adminpanel_products(:first))

    assert current_url.match('productos/first-product-slug')
  end

  protected

    def sign_in
      visit adminpanel.signin_path
      login
    end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
adminpanel-2.6.0 test/features/shared/concerns/friendly_test.rb
adminpanel-2.5.5 test/features/shared/concerns/friendly_test.rb
adminpanel-2.5.4 test/features/shared/concerns/friendly_test.rb