title: How to print output in stand alone capybara
body: <p>I have standalone capybara script to do acceptance testing on my live application. I want to printout the results on console after completing the test cases, for some reason nothing is printed on my terminal even though my test cases are pass.</p>
  
  <pre><code>require 'rubygems'
  require 'rspec'
  require 'rspec/expectations'
  require 'capybara'
  require 'capybara/webkit'
  require 'capybara/dsl'
  
  Capybara.configure do |config|
    config.run_server = false
    config.default_driver = :webkit 
    config.javascript_driver = :webkit
    config.app_host = 'https://dx.com/' # change url
    config.timeout = 40
  end
  
  
  Capybara::Webkit.configure do |config|
   config.allow_unknown_urls
  end
  
  module DxBat
    class Test
  
    include RSpec::Matchers
      include Capybara::DSL
      def login
        visit("/")
          fill_in "emailAddress", :with =&gt; "sd_auto_bat@dx.com"
          fill_in "password", :with =&gt; "123456"
      click_button("submit")
      page.should have_content 'Dashboard'
    end
    end
  end
  
  t = DxBat::Test.new
  t.login
  </code></pre>
  
  <p><strong>OUTPUT</strong></p>
  
  <pre><code>Loganathans-MacBook-Pro:Desktop Logan$ ruby sd_bat.rb 
  Loganathans-MacBook-Pro:Desktop Logan$
  </code></pre>