Sha256: 4be7585a9a50308c82c679f3a24ccff7e49a41e73577c0abf92182f0c05c3d5e

Contents?: true

Size: 424 Bytes

Versions: 11

Compression:

Stored size: 424 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '../../../spec_helper')

describe AppDiagram do
  describe 'file name processing' do
    it 'should extract a simple name' do
      ad = AppDiagram.new
      name = ad.instance_eval { extract_class_name('app/models/test_this.rb') }
      name.must_equal 'TestThis'
    end
    it 'should constantize a name' do
      'String'.constantize.must_equal String
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
prailroady-1.6.0 test/lib/railroady/app_diagram_spec.rb
railroady-1.6.0 test/lib/railroady/app_diagram_spec.rb
prailroady-1.5.3 test/lib/railroady/app_diagram_spec.rb
railroady-1.5.3 test/lib/railroady/app_diagram_spec.rb
railroady-1.5.2 test/lib/railroady/app_diagram_spec.rb
railroady-1.5.1 test/lib/railroady/app_diagram_spec.rb
railroady-1.5.0 test/lib/railroady/app_diagram_spec.rb
railroady-1.4.2 test/lib/railroady/app_diagram_spec.rb
railroady-1.4.1 test/lib/railroady/app_diagram_spec.rb
railroady-1.4.0 test/lib/railroady/app_diagram_spec.rb
railroady-1.3.1 test/lib/railroady/app_diagram_spec.rb