Sha256: 17c2bf3bbb296374c6af78901fb4a3bf8f8141ad9982c9a598668f3151bc9c1c

Contents?: true

Size: 408 Bytes

Versions: 28

Compression:

Stored size: 408 Bytes

Contents

RSpec::Matchers.define :have_link_with_tooltip do |content|
  match do |session|
    session.has_css?(%([content="#{content}"] a))
  end
end

# Here's a tiny custom matcher making it a bit easier to check the
# current session for a language configuration.
#
RSpec::Matchers.define :include_language_information_for do |expected|
  match do |actual|
    actual[:alchemy_language_id] == expected.id
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.3.3 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.3.2 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.2.7 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.3.1 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.3.0 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.2.6 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.2.5 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.1.12 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.2.4 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.1.11 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.2.3 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.1.10 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.2.2 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.1.9 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.2.1 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.1.8 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.1.7 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.1.6 lib/alchemy/test_support/rspec_matchers.rb
alchemy_cms-7.1.5 lib/alchemy/test_support/rspec_matchers.rb