Sha256: 823c04638e57064e4a7e103ec404aa6f116371eb2960745b1dc2f1704b2023c7

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

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

class TestUserRoutesTest < TestCase
  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.3.0 test/test_user_routes_test.rb