I just solved the problem by including the below code in my acceptance helper. If you are not Steak then just simply put it in spec helper or require it from somewhere else. Post and xhr methods are now available in that spec regardless in what spec it is or in what directory you are The code is derived from RSpec::Rails::RequestExampleGroup RSpec::Core::ExampleGroup.
Class_eval do include ActiveSupport::Concern include ActionDispatch::Integration::Runner include RSpec::Rails::BrowserSimulators def app ::Rails. Application end def last_response response end end.
I just solved the problem by including the below code in my acceptance helper. If you are not Steak then just simply put it in spec helper or require it from somewhere else. Post and xhr methods are now available in that spec regardless in what spec it is or in what directory you are.
The code is derived from RSpec::Rails::RequestExampleGroup RSpec::Core::ExampleGroup. Class_eval do include ActiveSupport::Concern include ActionDispatch::Integration::Runner include RSpec::Rails::BrowserSimulators def app ::Rails. Application end def last_response response end end.
I'd like to include the request helpers (from ActionDispatch::Integration::RequestHelpers ApiDock, like post and xhr methods) also in some specs outside of my controller specs. The problem is that these request helpers are only included in spec/controller and when a controller is described. What do I have to include/require in those specs?
I am using RSpec 2 and Rails 3.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.