lib/bbq/test_user.rb in bbq-0.2.1 vs lib/bbq/test_user.rb in bbq-0.3.0
- old
+ new
@@ -1,33 +1,5 @@
-require 'bbq'
-require 'capybara/rails' if Bbq.rails?
-require 'bbq/session'
-require 'bbq/roles'
-require 'bbq/test_user/capybara_dsl'
-require 'bbq/test_user/eyes'
-require 'bbq/test_user/within'
+require 'bbq/core/test_user'
module Bbq
- class TestUser
- include Bbq::TestUser::CapybaraDsl
- include Bbq::TestUser::Eyes
- include Bbq::TestUser::Within
- include Bbq::Roles
-
- attr_reader :options
-
- def initialize(options = {})
- @options = default_options.merge(options)
- end
-
- def default_options
- {
- :pool => Bbq::Session.pool,
- :driver => ::Capybara.default_driver
- }
- end
-
- def page
- @page ||= options[:session] || Bbq::Session.next(:driver => options[:driver], :pool => options[:pool])
- end
- end
+ TestUser = ::Bbq::Core::TestUser
end