Sha256: 213fb2689c302d4ebefec7255eea32b3edd562293e0d9eb97f24965c02c46d07

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

#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
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rrjj-0.0.1 spec/lib/ro_commands/rails_navigate_spec.rb