spec/r-fxxk_spec.rb in r-fxxk-0.1.0 vs spec/r-fxxk_spec.rb in r-fxxk-0.2.0

- old
+ new

@@ -42,10 +42,13 @@ its(:opn) { should eq 'n' } its(:cls) { should eq 'a' } it "fuck(hello.mona) should be 'Hello World\\n'" do subject.fuck(src('hello.mona')).should eq "Hello World!\n" end + it "translate(BrainFuck.new, hello.bf) should == hello.mona" do + subject.translate(BrainFuck, src('hello.bf')).strip.should eq src('hello.mona').strip + end end context 'customized class' do subject { Ook.new } its(:nxt) { should eq 'Ook. Ook?' } @@ -58,6 +61,7 @@ its(:cls) { should eq 'Ook? Ook!' } it "fuck(hello.ook) should be 'Hello World\\n'" do subject.fuck(src('hello.ook')).should eq "Hello World!\n" end end + end