You'd have to write a custom feature:

```ruby
Given /^a testing "(.+)" with:$/ do |filename, content|
  content = <<-EOH
source "http://localhost:#{CONSTANT}"
#{content}
EOH
  File.open(filename, 'w') { |f| f.write(content) } 
end
```