Sha256: cd3820d7c2136aadd27c8f8af87c7d072ebdf425e4229c2f4c1dd14795d3b73b

Contents?: true

Size: 717 Bytes

Versions: 21

Compression:

Stored size: 717 Bytes

Contents

Dir.chdir File.join File.dirname(__FILE__), '../../../'
require './lib/flok'
require './spec/env/etc'

RSpec.describe "lib/project" do
  it "can list project_template files" do
    ls = Flok::Project.list
    #Subject to change but it's just a basic test
    expect(ls).to include("Gemfile")
    expect(ls).to include("app/controllers")
  end

  it "can create project_template files" do
    dir = new_temp_dir
    Dir.chdir dir do
      Flok::Project.create "test"
      Dir.chdir "test" do
        #This is subject to change, but it's just a basic test
        expect(dirs).to include("app")
        expect(dirs).to include("app/controllers")
        expect(files).to include("Gemfile")
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
flok-0.0.36 spec/etc/lib/project_spec.rb
flok-0.0.35 spec/etc/lib/project_spec.rb
flok-0.0.34 spec/etc/lib/project_spec.rb
flok-0.0.33 spec/etc/lib/project_spec.rb
flok-0.0.32 spec/etc/lib/project_spec.rb
flok-0.0.31 spec/etc/lib/project_spec.rb
flok-0.0.30 spec/etc/lib/project_spec.rb
flok-0.0.29 spec/etc/lib/project_spec.rb
flok-0.0.28 spec/etc/lib/project_spec.rb
flok-0.0.27 spec/etc/lib/project_spec.rb
flok-0.0.26 spec/etc/lib/project_spec.rb
flok-0.0.25 spec/etc/lib/project_spec.rb
flok-0.0.24 spec/etc/lib/project_spec.rb
flok-0.0.23 spec/etc/lib/project_spec.rb
flok-0.0.21 spec/etc/lib/project_spec.rb
flok-0.0.20 spec/etc/lib/project_spec.rb
flok-0.0.19 spec/etc/lib/project_spec.rb
flok-0.0.18 spec/etc/lib/project_spec.rb
flok-0.0.17 spec/etc/lib/project_spec.rb
flok-0.0.16 spec/etc/lib/project_spec.rb