Class: Spec::Rails::Example::HelperExampleGroup::HelperObject

Inherits:
ActionView::Base show all
Defined in:
lib/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ActionView::Base

#render_partial_with_base_view_path_handling, #render_with_mock_proxy

Methods included from RenderObserver

#register_verify_after_each, #render_proxy, #should_not_receive, #should_receive, #stub, #stub!, #unregister_verify_after_each, #verify_rendered, #verify_rendered_proc

Constructor Details

#initialize(*args) ⇒ HelperObject

Returns a new instance of HelperObject.



37
38
39
40
# File 'lib/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb', line 37

def initialize(*args)
  @template = self
  super
end

Instance Attribute Details

#controller=(value) ⇒ Object

Sets the attribute controller

Parameters:

  • value

    the value to set the attribute controller to.



45
46
47
# File 'lib/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb', line 45

def controller=(value)
  @controller = value
end

#flash=(value) ⇒ Object

Sets the attribute flash

Parameters:

  • value

    the value to set the attribute flash to.



45
46
47
# File 'lib/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb', line 45

def flash=(value)
  @flash = value
end

#params=(value) ⇒ Object

Sets the attribute params

Parameters:

  • value

    the value to set the attribute params to.



45
46
47
# File 'lib/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb', line 45

def params=(value)
  @params = value
end

#request=(value) ⇒ Object

Sets the attribute request

Parameters:

  • value

    the value to set the attribute request to.



45
46
47
# File 'lib/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb', line 45

def request=(value)
  @request = value
end

#session=(value) ⇒ Object

Sets the attribute session

Parameters:

  • value

    the value to set the attribute session to.



45
46
47
# File 'lib/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb', line 45

def session=(value)
  @session = value
end

Instance Method Details

#protect_against_forgery?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb', line 41

def protect_against_forgery?
  false
end