summaryrefslogtreecommitdiff
path: root/features/step_definitions/config_steps.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-08 11:00:40 +0200
committerAzul <azul@leap.se>2014-07-14 10:49:39 +0200
commit303ec07901af3798efc873cbe050aa5cb4ba7655 (patch)
tree4c9a2d33d2bf1b24233d115e74368a533acf7666 /features/step_definitions/config_steps.rb
parent4dbfdf30c3235eb19e4f0ad959f65125ed18b39a (diff)
use cucumber; initial ConfigsController
Diffstat (limited to 'features/step_definitions/config_steps.rb')
-rw-r--r--features/step_definitions/config_steps.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/features/step_definitions/config_steps.rb b/features/step_definitions/config_steps.rb
new file mode 100644
index 0000000..50ae829
--- /dev/null
+++ b/features/step_definitions/config_steps.rb
@@ -0,0 +1,6 @@
+Given /the provider config is:$/ do |config|
+ @tempfile = Tempfile.new('provider.json')
+ @tempfile.write config
+ @tempfile.close
+ StaticConfigController::PROVIDER_JSON = @tempfile.path
+end