Skip to content

Instantly share code, notes, and snippets.

@slowjud
slowjud / string.rb
Created February 26, 2009 02:12 — forked from chrislloyd/string.rb
require 'singleton'
class String
class TextHelperSingleton
include Singleton
include ActionView::Helpers::TextHelper
end
def method_missing(method, *args)
Scenario: Visit the local conditions page for a location where conditions are available
Given I have a demonstration site
And the web service knows about "Sydney, NSW"
When I visit "/weather/local-conditions/nsw/sydney"
Then I should see "Sydney current conditions"
And I should see a "Dew point" value of "14"