Sha256: 3afd25c46f7f11891fa126710177a01d7e4514f9c4616838c5c703baa57d12ad

Contents?: true

Size: 804 Bytes

Versions: 21

Compression:

Stored size: 804 Bytes

Contents

Then /^I (should|should not) see "([^"]*)" in the file assets list$/ do |bool, arg|
  with_scope("#file_assets") do
    if bool == "should"
      Then %{I should see "#{arg}"}
    else
      Then %{I should not see "#{arg}"}
    end
  end
end


Then /^I should see a link to "([^"]*)" in the file assets list$/ do |link_name|
  with_scope("#file_assets") do
    Then %{I should see a link called "#{link_name}"}
  end
end


Then /^I (should|should not) see a link to "([^"]*)" with label "([^"]*)" in the file assets list$/ do |bool, link_name, label_name|
  with_scope("#file_assets") do
    if bool == "should"
      Then %{I should see a link to "#{link_name}" with label "#{label_name}"}
    else
      Then %{I should not see a link to "#{link_name}" with label "#{label_name}"} 
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hydra-head-3.0.0pre1 test_support/features/step_definitions/file_list_steps.rb