Sha256: 1025bafe2c3ce3ced667f6da2e82e0ffece9b703f87612641f77146c64ea1fb3

Contents?: true

Size: 473 Bytes

Versions: 24

Compression:

Stored size: 473 Bytes

Contents

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

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

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

    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

24 entries across 24 versions & 1 rubygems

Version Path
wagn-1.14.9 features/support/scopes.rb
wagn-1.14.8 features/support/scopes.rb
wagn-1.14.7 features/support/scopes.rb
wagn-1.14.6 features/support/scopes.rb
wagn-1.14.5 features/support/scopes.rb
wagn-1.14.4 features/support/scopes.rb
wagn-1.14.3 features/support/scopes.rb
wagn-1.14.2 features/support/scopes.rb
wagn-1.14.1 features/support/scopes.rb
wagn-1.14.0 features/support/scopes.rb
wagn-1.14.0.pre3 features/support/scopes.rb
wagn-1.14.0.pre2 features/support/scopes.rb
wagn-1.14.0.pre1 features/support/scopes.rb
wagn-1.13.0 features/support/scopes.rb
wagn-1.13.0.pre2 features/support/scopes.rb
wagn-1.13.0.pre1 features/support/scopes.rb
wagn-1.13.0.pre features/support/scopes.rb
wagn-1.12.13 features/support/scopes.rb
wagn-1.12.12 features/support/scopes.rb
wagn-1.12.11 features/support/scopes.rb