Sha256: c01481fa2a2e50993afb6f600f5fce6dca31628c411970ba7cb1a4d4aa318c11

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 KB

Contents

require "spec_helper"

RSpec.describe "PowerTypes" do
  before :all do
    drop_dummy_database
    remove_project_directory
    create_dummy_project
  end

  it "adds the PowerTypes gem to Gemfile" do
    gemfile_content = IO.read("#{project_path}/Gemfile")
    expect(gemfile_content).to include("gem 'power-types'")
  end

  it "adds the PowerTypes brief to README file" do
    readme = IO.read("#{project_path}/README.md")
    expect(readme).to include("Power-Types")
  end

  it "adds commands directory" do
    commands_directory = "#{project_path}/app/commands"
    expect(File.directory?(commands_directory)).to eq(true)
  end

  it "adds services directory" do
    services_directory = "#{project_path}/app/services"
    expect(File.directory?(services_directory)).to eq(true)
  end
  it "adds utils directory" do
    utils_directory = "#{project_path}/app/utils"
    expect(File.directory?(utils_directory)).to eq(true)
  end
  it "adds values directory" do
    values_directory = "#{project_path}/app/values"
    expect(File.directory?(values_directory)).to eq(true)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
potassium-5.2.3 spec/features/power_types_spec.rb
potassium-5.2.2 spec/features/power_types_spec.rb
potassium-5.2.1 spec/features/power_types_spec.rb
potassium-5.2.0 spec/features/power_types_spec.rb
potassium-5.1.4 spec/features/power_types_spec.rb
potassium-5.1.3 spec/features/power_types_spec.rb
potassium-5.1.2 spec/features/power_types_spec.rb
potassium-5.1.1 spec/features/power_types_spec.rb