tests/deltacloud/test_setup.rb
# Only run tests if collection +collection+ supports feature +name+ in
# the current driver. Use inside a 'describe' block. Tests that are not
# run because of a missing collection are marked as skipped
Only run tests if collection +collection+ supports feature +name+ in
the current driver. Use inside a 'describe' block. Tests that are not
run because of a missing collection are marked as skipped
Only run tests if collection + collection + supports feature + name + in the current driver . Use inside a ' describe ' block . Tests that are not run because of a missing collection are marked as skipped
def need_feature(collection, name)
      before :each do
        f = api.features[collection.to_sym]
        unless f && f.include?(name.to_sym)
          skip "#{collection} for #{api.driver} doesn't support #{name}"
        end
      end
    end
def need_feature ( collection , name ) before :each do f = api . features [ collection . to_sym ] unless f && f . include? ( name . to_sym ) skip "#{collection} for #{api.driver} doesn't support #{name}" end end end
Only run tests if collection +collection+ supports feature +name+ in
the current driver.
Only run tests if collection + collection + supports feature + name + in the current driver .
collection
<not_specific>
name
<not_specific>