#require 'spec_helper' # #describe "#RailsNavigate" do # let(:o) do # ::RoCommands::RailsNavigate.new # end # # before do # cdfix "rails_navigate" # RoFaker.flow do |f| # f.f "app/controllers/one_controller.rb" # f.f "app/controllers/two_controller.rb" # f.f "app/controllers/app_controller.rb" # f.f "app/models/two_model.rb" # f.f "app/models/two_model.rb" # f.f "app/decorators/two_decorator.rb" # f.f "app/decorators/two_decorator.rb" # f.f "opal_lib/path/to/file.rb" # f.f "opal_lib/path/to/file2.rb" # end # end # # PROJECT_FILES = %w(cone mtwo dtwo lfile) # PROJECT_FILES.each do |file| # it "#access #{file}" do # result = o.send(:"get_file", file) # end # end # # it "#access app_controller.rb" do # result = o.send(:"get_file", "capp") # end # # it "#find_file" do # result = o.send(:"find_file" ,'app/controllers', 'app') # expect(result).to eq("app/controllers/app_controller.rb") # end # # let(:odd) do # ::RoCommands::RailsNavigate::DirDict # end # # it "[]" do # expect(odd["c"]).to eq("app/controllers") # end #end #