Sha256: 0ebf6a5e13a8d0ef244450aacd75ac302e3a2c727d038ecf4bb0951ed8cc5238
Contents?: true
Size: 744 Bytes
Versions: 1
Compression:
Stored size: 744 Bytes
Contents
require 'apotomo' require 'apotomo/test_case' module RSpec::Rails module WidgetExampleGroup extend ActiveSupport::Concern include Apotomo::TestCase::TestMethods included do before do @parent_controller = Class.new(ActionController::Base).new @parent_controller.instance_eval do extend Apotomo::Rails::ControllerMethods def controller_path; 'barn'; end end @parent_controller.request = ::ActionController::TestRequest.new end end module InstanceMethods # TODO documentation def response @last_invoke end attr_reader :parent_controller include ::Apotomo::WidgetShortcuts end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-apotomo-0.9.1 | lib/rspec/rails/example/widget_example_group.rb |