Test with Rspec using session sinatra?

Same like all other pages You need to clarify your question. What is problem with testing session. If problems is that user need to be logged in, then you can use something like this in spec file: before :each do post "/login", {:username => "myuser", :password => "mypass"} end which will log you in before each test.

Same like all other pages. You need to clarify your question. What is problem with testing session.

If problems is that user need to be logged in, then you can use something like this in spec file: before :each do post "/login", {:username => "myuser", :password => "mypass"} end which will log you in before each test.

I was only able to get it to work by disabling sessions for the test environment. This blog post has a good example: benprew.posterous.com/testing-sessions-w....

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.

Related Questions