user938363
user938363

Reputation: 10358

How to print out to screen in rspec integration test in rails 3.2?

We want to print out some variables to the screen during integration test. pp and puts were not doing anything. Is there other command we can use in rspec to print out to screen in integration test (use capybara)? Thanks.

Upvotes: 1

Views: 861

Answers (1)

Billy Chan
Billy Chan

Reputation: 24815

Just use puts.

Make sure your rspec output format is documentation. Command like

rspec --format documentation

Or set that in .rspec

Upvotes: 1

Related Questions