Sha256: f096c4b8d3c221c808cd8d22dec6ec107fae5005fda3bdad42f3d0ed078f07e0

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 Bytes

Contents

require 'spec_helper'

describe ScopedFrom do

  describe '.version' do

    subject { ScopedFrom.version }

    it { should be_a(String) }
    it { should match(/^\d+\.\d+(\.\d+)?/) }

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

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
scoped_from-1.0.1 spec/scoped_from_spec.rb
scoped_from-1.0.0 spec/scoped_from_spec.rb
scoped_from-0.9.0 spec/scoped_from_spec.rb
scoped_from-0.8.5 spec/scoped_from_spec.rb
scoped_from-0.8.4 spec/scoped_from_spec.rb
scoped_from-0.8.3 spec/scoped_from_spec.rb