diaspora/features/step_definitions/uri-step.rb
Jonne Haß 2a4db54db9 New configuration system
* Throw away old system
* Add new system
* Add new example files
* Replace all calls
* add the most important docs
* Add Specs
* rename disable_ssl_requirement to require_ssl
* cloudfiles isn't used/called in our code
* since community_spotlight.list is only used as enable flag replace it with such one and remove all legacy and irelevant codepaths around it
* die if session secret is unset and on heroku
* First basic infrastructure for version information
2012-09-26 20:19:37 +02:00

26 lines
619 B
Ruby

When /^I visit url ([^ ]+)$/ do |url|
visit( url)
end
Then /^I should find '([^']*)' in ([^ ]+)$/ do |pattern,file|
found = %x!fgrep -o #{pattern} #{file}!
assert_equal pattern, found.chomp, "Can't find pattern in #{file}"
end
Then /^I should match '([^']*)' in ([^ ]+)$/ do |pattern,file|
found = `egrep -o '#{pattern}' #{file}`
assert_match /#{pattern}/, found.chomp, "Can't find #{pattern} in #{file}"
end
When /^I retrieve ([^ ]+) into ([^ ]+)$/ do |url,file|
system( "wget -q -O #{file} #{url}")
end
Then /^a page\-asset should be ([^ ]+)$/ do |asset_path|
page.has_content?(asset_path)
end