Sha256: 9de825f526bc0be1cdf551e78d080ee4b91b6308c750a95c1144fe5a0626a22f

Contents?: true

Size: 768 Bytes

Versions: 19

Compression:

Stored size: 768 Bytes

Contents

# -*- encoding : utf-8 -*-
module ScopeHelpers
  def scope_of section
    case section

    when /main card content/
      '#main > .card-slot > .card-frame > .card-content'

    when /pointer card content/
      '#main > .card-slot > .card-frame > .card-content > .pointer-list'

    when /main card header/
      '#main > .card-slot > .card-frame > .card-header'

    when /main card menu/
      '#main > .card-slot > .menu-slot > .card-menu'

    when /main card toolbar/
      '#main > .card-slot > .card-frame > nav.toolbar'

    when /main card frame/
      '#main > .card-slot > .card-frame'

    else
      raise "Can't find mapping from \"#{section}\" to a scope.\n" +
        "Now, go and add a mapping in #{__FILE__}"
    end
  end
end

World(ScopeHelpers)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wagn-1.17.4 features/support/scopes.rb
wagn-1.17.3 features/support/scopes.rb
wagn-1.17.2 features/support/scopes.rb
wagn-1.17.1 features/support/scopes.rb
wagn-1.17.0 features/support/scopes.rb
wagn-1.16.15 features/support/scopes.rb
wagn-1.16.14 features/support/scopes.rb
wagn-1.16.13 features/support/scopes.rb
wagn-1.16.12 features/support/scopes.rb
wagn-1.16.11 features/support/scopes.rb
wagn-1.16.10 features/support/scopes.rb
wagn-1.16.9 features/support/scopes.rb
wagn-1.16.8 features/support/scopes.rb
wagn-1.16.7 features/support/scopes.rb
wagn-1.16.6 features/support/scopes.rb
wagn-1.16.5 features/support/scopes.rb
wagn-1.16.4 features/support/scopes.rb
wagn-1.16.3 features/support/scopes.rb
wagn-1.16.2 features/support/scopes.rb