Sha256: 3b978d73a69fab585924b3594016521d4a26ca809fa60c2ccdf77f07cd9538a9

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

describe Archruby::Architecture::FileContent do

  it 'get the content from the right files' do
    file_reader = Archruby::Architecture::FileContent.new("/Users/sergiomiranda/Labs/ruby_arch_checker/arch_checker/spec/dummy_app/app/")
    content = file_reader.all_content_from_directory "controllers/**/*.rb"
    content.keys.should include('application_controller')
    content['application_controller'].should_not be_nil
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
archruby-0.2.0 spec/architecture/file_content_spec.rb
archruby-0.1.1 spec/architecture/file_content_spec.rb
archruby-0.1.0 spec/architecture/file_content_spec.rb