Sha256: b27d511c5a45c1ef0a525efb1d2ea7ba7680c76e70b3731f4e06131e59c0542d

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 KB

Contents

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

Then /^I should receive an? "([^"]*)" file named "([^"]*)"$/ do |content_type, file|
  result = page.response_headers['Content-Type'].should == content_type
  if result
    result = page.response_headers['Content-Disposition'].should =~ /filename="#{file}"/
  end
  result
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hydra-head-4.1.3 test_support/features/step_definitions/file_list_steps.rb
hydra-head-4.1.2 test_support/features/step_definitions/file_list_steps.rb
hydra-head-4.1.1 test_support/features/step_definitions/file_list_steps.rb
hydra-head-4.1.0 test_support/features/step_definitions/file_list_steps.rb
hydra-head-4.0.3 test_support/features/step_definitions/file_list_steps.rb
hydra-head-4.0.2 test_support/features/step_definitions/file_list_steps.rb
hydra-head-4.0.1 test_support/features/step_definitions/file_list_steps.rb