Sha256: e923f75340c1d08f2d9fe92c8a1edef02ad0abd9e50a01a8d8139219471255a4

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

require 'spec_helper'
module Rea
  describe WorkKey, "to_ruby_literal" do

    let(:wk){ Rea::WorkKey("dblp://conf/icse/DamasLRL09") }

    it 'returns an evaluable expression' do
      eval(wk.to_ruby_literal).should be_a(WorkKey)
    end

    it 'should be equal to the original' do
      eval(wk.to_ruby_literal).should eq(wk)
    end

    it 'should be understood by Alf' do
      Alf::Tools.to_ruby_literal(wk).should eq(wk.to_ruby_literal)
    end

  end
end # module Rea

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rea-0.0.1 spec/work_key/test_to_ruby_literal.rb