Sha256: 99e167a5ceea71b5b3de6c157c1857626304cc7259fb343bfe5bb685b545359c

Contents?: true

Size: 437 Bytes

Versions: 8

Compression:

Stored size: 437 Bytes

Contents

require 'fakefs'
require_relative "../spec_helper"
require_relative "../../lib/corneal"

describe Corneal::VERSION do
  subject { Corneal::Generators::AppGenerator }

  describe "source_root" do
    it "should return with a full path" do
      pwd           = File.dirname(__FILE__)
      template_path = pwd.sub 'spec/corneal', 'lib/corneal/generators/app/templates'
      subject.source_root.must_equal template_path
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
corneal-new-1.3.1 spec/corneal/cli_spec.rb
corneal-new-1.3.0 spec/corneal/cli_spec.rb
corneal-1.2.3 spec/corneal/cli_spec.rb
corneal-1.2.2 spec/corneal/cli_spec.rb
corneal-1.2.1 spec/corneal/cli_spec.rb
corneal-1.2.0 spec/corneal/cli_spec.rb
corneal-1.1.0 spec/corneal/cli_spec.rb
corneal-1.0.0 spec/corneal/cli_spec.rb