Alvin_S
1
After trying RailsStory for a few days, I have learned:
-
Rails testing support does not serve up static pages
-
RailsStory masks errors generated by the app under test
-
The masked errors are available in log/test
-
I should read log/test more often
See Parked at Loopia for an example for points 2 and 3
The welcome controller fails when the HTTP_USER_AGENT is missing.
This error shows up in log/test but I do not know how to display the
error from within RailsStory.
Alvin.
Alvin_S
2
On 10/16/07, Alvin S. [email protected] wrote:
After trying RailsStory for a few days, I have learned:
-
Rails testing support does not serve up static pages
-
RailsStory masks errors generated by the app under test
-
The masked errors are available in log/test
-
I should read log/test more often
Or you can do this:
class WelcomeController; def rescue_action(e) raise e; end; end
Alvin_S
3
David C. wrote:
- I should read log/test more often
Or you can do this:
class WelcomeController; def rescue_action(e) raise e; end; end
True.
I am writing stories for an existing rails app that has morphed several
times.
I am still learning which http parameters, headers, etc that are
required.
Alvin_S
4
The welcome controller fails when the HTTP_USER_AGENT is missing.
Alvin–
Try:
request.stub!(:user_agent).and_return(‘Mozilla’)
Alvin_S
6
Thanks!
A usable stack trace now shows up in the console.
Alvin.