Untitled #3

Open
johnreitano opened this Issue Jan 6, 2011 · 0 comments

Projects

None yet

1 participant

@johnreitano

Hi,

When I change the registered identifier, it seems that the value of request.body is always nil, even when I am posting lots of data.

How do I get at the real value of the request body to use it as part of the request identifier?

Here is the configuration code I'm using:

Spec::Runner.configure do |config|
config.include Capybara
config.before(:suite) do
EphemeralResponse.activate
EphemeralResponse.configure do |config|
config.register('auristechnology.com') do |request|
"#{request.uri.host}#{request.method}#{request.path}#{request.body.to_s.gsub( /[\d:]+</reference-id>/, '' )}"
end
end
end
config.after(:suite) do
EphemeralResponse.deactivate
end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment