With a rails application I’m trying to access the public/ folder from
within a rspec story.
I have a controller which redirects to:
I have a story written using webat.
This story uses the above controller and it expects the redirection.
This story always fails as within the story it cannot follow the
redirection (Always gives a 500 error). It does not seem to be able to
access any public/ content within the story.
Within step file of a story this always fails:
I looked back at ActionController::IntegrationTest which seems to be
where RailsStory gets all its magic from. That lead me to believe that
perhaps this was a rails issue?
So I’m unsure if:
Accessing public/ within a story is just not supposed to be possible.
Accessing public/ within ActionController::IntegrationTest is not
suppose to be possible.
Rspec has a bug
Rails has a bug
This is down on Rails 2.0.2.
Rspec GIT trunk