Sha256: d5ba19435f0280974da4a65c15e9a4892a2d4812f35caba8bbcd8eed9bce9d53

Contents?: true

Size: 370 Bytes

Versions: 11

Compression:

Stored size: 370 Bytes

Contents

module Capybara
  class Session
    def has_image?(src)
      has_xpath?("//img[contains(@src,'#{src}')]")
    end
  end

  add_selector(:linkhref) do
    xpath {|href| ".//a[@href='#{href}']"}
  end
end

def ensure_on(path)
  visit(path) unless current_path == path
end

RSpec.configure do |c|
  c.alias_it_should_behave_like_to :it_has_behaviour, 'has behaviour:'
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-images-4.0.3 spec/support/spec_helper.rb
refinerycms-images-4.0.2 spec/support/spec_helper.rb
refinerycms-images-4.0.1 spec/support/spec_helper.rb
refinerycms-images-3.0.6 spec/support/spec_helper.rb
refinerycms-images-4.0.0 spec/support/spec_helper.rb
refinerycms-images-3.0.5 spec/support/spec_helper.rb
refinerycms-images-3.0.4 spec/support/spec_helper.rb
refinerycms-images-3.0.3 spec/support/spec_helper.rb
refinerycms-images-3.0.2 spec/support/spec_helper.rb
refinerycms-images-3.0.1 spec/support/spec_helper.rb
refinerycms-images-3.0.0 spec/support/spec_helper.rb