Sha256: 2a8c1fc7cd563ed1a0d9b17168c1418d951e99ad2de97968c1ceb6e0667914b4
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
require 'translate' describe Translate do it 'should give the pre method for a normal method' do Translate.method_pre(:method).should == :method_pre end it 'should give the pre method for a question method' do Translate.method_pre(:method?).should == :method_pre? end it 'should give the pre method for an exclamation method' do Translate.method_pre(:method!).should == :method_pre! end it 'should give the pre method for an assignment method' do Translate.method_pre(:method=).should == :method_pre= end it 'should give the pre method for an operator' do Translate.method_pre(:+).should == :op_plus_pre end it 'should give the post method for a normal method' do Translate.method_post(:method).should == :method_post end it 'should give the post method for a question method' do Translate.method_post(:method?).should == :method_post? end it 'should give the post method for an exclamation method' do Translate.method_post(:method!).should == :method_post! end it 'should give the post method for an assignment method' do Translate.method_post(:method=).should == :method_post= end it 'should give the post method for an operator' do Translate.method_post(:+).should == :op_plus_post end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
armin-joellenbeck-rdbc-0.0.4 | spec/translate_spec.rb |
armin-joellenbeck-rdbc-0.0.5 | spec/translate_spec.rb |