Sha256: 326bd2b3e1ee06da3b8ddf483587f0765b207260d1b4462c0f2072801edfbfc4

Contents?: true

Size: 409 Bytes

Versions: 5

Compression:

Stored size: 409 Bytes

Contents

require 'spec_helper'

describe ScopedFrom do

  describe '.version' do

    it 'is a string' do
      ScopedFrom.version.should be_a(String)
    end

    it 'is with correct format' do
      ScopedFrom.version.should match(/^\d+\.\d+(\.\d+)?/)
    end

    it 'is freezed' do
      expect {
        ScopedFrom.version.gsub!('.', '#')
      }.to raise_error(/can't modify frozen string/i)
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scoped_from-0.8.2 spec/scoped_from_spec.rb
scoped_from-0.8.1 spec/scoped_from_spec.rb
scoped_from-0.8.0 spec/scoped_from_spec.rb
scoped_from-0.7.0 spec/scoped_from_spec.rb
scoped_from-0.6.1 spec/scoped_from_spec.rb