CapybaraConsole
===============

This tiny gem provides you with a [Capybara](https://github.com/jnicklas/capybara) console for your Rails project.
Simply include it in your Gemfile:

    gem 'capybara-console'

, then run

    rake capybara:console

and you're completely set to go REPLing with Capybara, like

    > visit 'http://github.com'

or

    > visit '/'

If you need something included in your console by default, create an `capybara:prepare_console` task:

    namespace :capybara do

      task :prepare_console do

        def test_path opts 
          path = opts[:path] || "/"
          subdomain = opts[:subdomain] || 'test'
          port = Capybara.current_session.server.port
          url = "http://#{subdomain}.mytestdomain.home:#{port}#{path}"
        end

      end

    end

Enjoy!

Licensed under MIT-LICENSE.

CapybaraConsole
===============

This tiny gem provides you with a [Capybara](https://github.com/jnicklas/capybara) console for your Rails project.
Simply include it in your Gemfile:

```ruby
gem 'capybara-console'
```

then run

``` bash
rake capybara:console
```

and you're completely set to go REPLing with Capybara, like
``` bash
> visit 'http://github.com'
```
or
``` bash
> visit '/'
```

If you need something included in your console by default, create a `capybara:prepare_console` task:

``` ruby
namespace :capybara do

  task :prepare_console do

    def test_path opts 
      path = opts[:path] || '/'
      subdomain = opts[:subdomain] || 'test'
      port = Capybara.current_session.server.port
      url = "http://#{subdomain}.mytestdomain.home:#{port}#{path}"
    end

  end

end
```

Enjoy!

Licensed under MIT-LICENSE.

Update ReadMe with Github Flavored Markdown
Update ReadMe with Github Flavored Markdown