Implied extensions. Closes #304
This commit is contained in:
parent
aab9644185
commit
e769477e93
9 changed files with 102 additions and 19 deletions
|
@ -21,9 +21,7 @@ Given /^current environment is "([^\"]*)"$/ do |env|
|
|||
@current_env = env.to_sym
|
||||
end
|
||||
|
||||
Given /^the Server is running at "([^\"]*)"$/ do |app_path|
|
||||
step %Q{a fixture app "#{app_path}"}
|
||||
|
||||
Given /^the Server is running$/ do
|
||||
root_dir = File.expand_path(current_dir)
|
||||
|
||||
if File.exists?(File.join(root_dir, "source"))
|
||||
|
@ -49,6 +47,11 @@ Given /^the Server is running at "([^\"]*)"$/ do |app_path|
|
|||
@browser = ::Rack::Test::Session.new(::Rack::MockSession.new(app_rack))
|
||||
end
|
||||
|
||||
Given /^the Server is running at "([^\"]*)"$/ do |app_path|
|
||||
step %Q{a fixture app "#{app_path}"}
|
||||
step %Q{the Server is running}
|
||||
end
|
||||
|
||||
When /^I go to "([^\"]*)"$/ do |url|
|
||||
@browser.get(url)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue