Sha256: 378918daf57cf07a805f4d3b461191e931e6672c70bad10bfbba6933a005c97e

Contents?: true

Size: 462 Bytes

Versions: 8

Compression:

Stored size: 462 Bytes

Contents

module LocalesHelpers

  # translate a string, useful in the feature descriptions, to a key to find
  # the complete message in the locale files
  def message_to_locale_key(msg)
    case msg.downcase
    when /the meeting is not running/
      key = 'bigbluebutton_rails.rooms.errors.auth.not_running'
    when /authentication failure/
      key = 'bigbluebutton_rails.rooms.errors.auth.failure'
    else
      key = ''
    end
  end

end

World(LocalesHelpers)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bigbluebutton_rails-1.3.0.mweb1 spec/rails_app/features/support/locales.rb
bigbluebutton_rails-1.3.0 spec/rails_app/features/support/locales.rb
bigbluebutton_rails-1.3.0.beta1 spec/rails_app/features/support/locales.rb
bigbluebutton_rails-1.2.0 spec/rails_app/features/support/locales.rb
bigbluebutton_rails-1.1.0 spec/rails_app/features/support/locales.rb
bigbluebutton_rails-1.0.0 spec/rails_app/features/support/locales.rb
bigbluebutton_rails-0.1.1 spec/rails_app/features/support/locales.rb
bigbluebutton_rails-0.1.0 spec/rails_app/features/support/locales.rb