Sha256: 4713b9590eb2af1b8cbaefc9502b18357030fbd11df59fe6e9e438651636e269

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe Wookie::Dialect::Simple do
  before do
    @dialect = Wookie::Dialect::Simple.new
    @english = 'enter your text here!'
    @wookie  = 'wowhaoworc rooohurc aowokao acworcwo!'
  end

  it "should have a distinct set of short codes" do
    Wookie::Dialect::Simple::SHORT_CODES.should eq("ck")
  end

  it "translates to wookie" do
    @dialect.to_wookie(@english).should eq(@wookie)
  end

  it "translates back to english" do
    @dialect.from_wookie(@wookie).should eq(@english)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wookie-translator-0.1.1 spec/wookie/simple_dialect_spec.rb
wookie-translator-0.1.0 spec/wookie/simple_dialect_spec.rb