Agile_disciple_small

There's a Tarantula in my Story!

Relevance announced Tarantula this evening. The description says “It crawls your Rails application, fuzzing data to see what breaks.” I thought that sounds fun, so off to grab it…

The instructions tell me to “Create a Rails integration test.” I haven’t done that in quite a while, having sipped the RSpec Kool-aid. I wonder if it will work with the Story Framework?

Well, almost.

I had to make a couple small changes to rails_integration_proxy.rb
Line 30:
status = integration_test.send(verb, url, *args)
Line 32:
patch_response(url, response, status)
Line 38:
if response.code == '404' || (status == 500 && File.exist?(static_content_path(url)))
Everything else seemed to work!

Story: Tarantula
Scenario: Fuzz my data
  Given a logged in fanboy 'Peter_Parker' with password 'AuntMay' 
  Then Tarantula should 'bite me'
require File.dirname(__FILE__) + '/../../spec/spec_helper'
require 'relevance/tarantula'
steps_for(:tarantula) do
  Given("a logged in fanboy '$login' with password '$password'") do |login, password|
    post_via_redirect '/login', :login => login, :password => password 
  end
  Then("Tarantula should 'bite me'") do
    tarantula_crawl(self)
  end
end

Post a comment


(lesstile enabled - surround code blocks with ---)