lib/polytrix/rspec.rb in polytrix-0.1.0 vs lib/polytrix/rspec.rb in polytrix-0.1.1
- old
+ new
@@ -17,10 +17,10 @@
describe suite_name do
samples = suite_config.samples || []
samples.each do |scenario|
describe scenario.name do
Polytrix.implementors.each do |sdk|
- it sdk.name, sdk.name.to_sym => true do
+ it sdk.name, sdk.name.to_sym => true do | example |
begin
skip "#{sdk.name} is not setup" unless File.directory? sdk.basedir
slug = Polytrix::Challenge.slugify(suite_name, scenario.name, sdk.name)
challenge = Polytrix.manifest.challenges[slug]
# sdk.build_challenge suite: suite_name, name: scenario, vars: suite_config.env