Skip to content


Story time with Merb Sneak Peek

This is so awesome, I can’t contain myself. The other day, I had a crazy idea on how I’m going to development from now on. I’m sure it was nothing that hadn’t been thought of before, but it just might have been life changing for me. I can’t quite release it now, because it isn’t all baked yet. But, I can whet your appetites with some the goodness that is coming.

    06:57:46$ rake storytime
    Started merb_init.rb ...
    Connecting to database...
    Loading Application...
    Compiling routes..
    Loaded DEVELOPMENT Environment...
    Running 1 scenarios:
    Story: Login

  As a user on the site
      I want to be able to login
      So I can view protected content

Scenario: Loading the admin page when not logged in

  When the user goes to /admin

  Then the user should be redirected to /sessions/new
  And the title should be 'Spewr -- Administration Login'
  And the page should contain the text 'Login:'
  And there should be a field named 'login'
  And the page should contain the text 'Password:'
  And there should be a field named 'password'

1 scenarios: 1 succeeded, 0 failed, 0 pending

I’m giddy right now.

<p>ps.  Ignore the actual contents of my story.  It isn&#8217;t correct, and I only wrote it to test the mechanism.</p>

Posted in Uncategorized.