cs3b/kameleon — pull request #27 by Skieloch (2012-07-25 19:24:40+00:00)
Title: Add possibility to calling #create_session method with block.

When I create new session and I want to do something on them - I would like to use #create_session with block, i.e.:

```ruby
create_session :admin do
visit '/admin'
click 'Login'
fill_in 'admin' => 'username'
end

create_session :customer do
visit '/customer'
click 'Login'
fill_in 'customer' => 'username'
end
```

For me it better looks (even if above example has got more lines of code than below, because I see what is doing in the specific session) - than use:

```ruby
create_session :admin
visit '/admin'
click 'Login'
fill_in 'admin' => 'username'

create_session :customer
visit '/customer'
click 'Login'
fill_in 'customer' => 'username'
```