Sha256: 6a7877744b90849c0d502cf09a7805696bab64710a5af346d69dca22b2fd78cf

Contents?: true

Size: 397 Bytes

Versions: 11

Compression:

Stored size: 397 Bytes

Contents

require 'lib/ramaze/spec/helper/snippets'

describe 'String#/ and Symbol#/' do
  it 'should join two strings' do
    ('a' / 'b').should == 'a/b'
  end

  it 'should join a string and a symbol' do
    ('a' / :b).should == 'a/b'
  end

  it 'should join two symbols' do
    (:a / :b).should == 'a/b'
  end

  it 'should be usable in concatenation' do
    ('a' / :b / :c).should == 'a/b/c'
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
Pistos-ramaze-2008.09 spec/snippets/divide.rb
clivecrous-ramaze-0.3.9.5 spec/snippets/divide.rb
manveru-ramaze-2008.07 spec/snippets/divide.rb
manveru-ramaze-2008.08 spec/snippets/divide.rb
manveru-ramaze-2008.09 spec/snippets/divide.rb
ramaze-0.3.5 spec/snippets/divide.rb
ramaze-0.3.0 spec/snippets/divide.rb
ramaze-0.3.9 spec/snippets/divide.rb
ramaze-2008.06 spec/snippets/divide.rb
ramaze-0.3.9.1 spec/snippets/divide.rb
ramaze-2008.11 spec/snippets/divide.rb