spec/architecture/file_content_spec.rb in archruby-0.2.0 vs spec/architecture/file_content_spec.rb in archruby-0.3.0

- old
+ new

@@ -1,10 +1,11 @@ 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/") + fake_app_path = File.expand_path('../../dummy_app/app', __FILE__) + file_reader = Archruby::Architecture::FileContent.new(fake_app_path) content = file_reader.all_content_from_directory "controllers/**/*.rb" content.keys.should include('application_controller') content['application_controller'].should_not be_nil end