Permalink
Browse files

gotcha 2

  • Loading branch information...
1 parent 2d0b2ca commit cbd6657e4c3dbf98b0d807d8e99c21b2bf135e68 Dominik Menke committed Mar 31, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 spec/wookie/identity_dialect_spec.rb
  2. +2 −2 spec/wookie/translator_spec.rb
View
2 spec/wookie/identity_dialect_spec.rb
@@ -8,7 +8,7 @@ def from_wookie(str); str; end
describe Wookie::Translator do
before do
- @t = Wookie::Translator.new(dialect: IdentityDialect)
+ @t = Wookie::Translator.new(:dialect => IdentityDialect)
@english = 'enter your text here!'
@wookie = 'wowhaoworc rooohurc aowokao acworcwo!'
end
View
4 spec/wookie/translator_spec.rb
@@ -14,13 +14,13 @@
end
it "should translate with the simple default dialect (hash form)" do
- t = Wookie::Translator.new dialect: Wookie::Dialect::Simple
+ t = Wookie::Translator.new :dialect => Wookie::Dialect::Simple
t.to_wookie(@english).should eq(@wookie)
t.from_wookie(@wookie).should eq(@english)
end
it "should raise a NotImplementedError if using an incomplete dialect" do
- t = Wookie::Translator.new dialect: Wookie::Dialect::Base
+ t = Wookie::Translator.new :dialect => Wookie::Dialect::Base
expect {
t.to_wookie(@english).should eq(@wookie)
}.to raise_error(NotImplementedError)

0 comments on commit cbd6657

Please sign in to comment.