Sha256: 14dd77d2c53fe785ff71ec7ddd530633801df65fa3effd5b2020f6177aea5f0d

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

require 'test_helper'
require 'bbq/core/test_user'
require 'bbq/rails/routes'

class TestUserRoutesTest < Minitest::Test
  class TestUserWithRoutes < Bbq::Core::TestUser
    include ::Bbq::Rails::Routes

    def visit_test_page
      visit(root_url)
    end
  end

  def test_routes_integration
    user = TestUserWithRoutes.new
    user.visit_test_page

    assert user.has_content?('dummy')
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bbq-rails-0.4.0 test/test_user_routes_test.rb