Sha256: 333c4b1715fb31a04c4b094121b9776df130eb21d3e001257704f2a9d47ee97c

Contents?: true

Size: 728 Bytes

Versions: 8

Compression:

Stored size: 728 Bytes

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 every power type directory" do
    [:commands, :services, :observers, :utils, :values].each do |type|
      commands_directory = "#{project_path}/app/#{type}"
      expect(File.directory?(commands_directory)).to eq(true)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
potassium-6.7.0 spec/features/power_types_spec.rb
potassium-6.6.0 spec/features/power_types_spec.rb
potassium-6.5.0 spec/features/power_types_spec.rb
potassium-6.4.0 spec/features/power_types_spec.rb
potassium-6.3.0 spec/features/power_types_spec.rb
potassium-6.2.0 spec/features/power_types_spec.rb
potassium-6.1.0 spec/features/power_types_spec.rb
potassium-6.0.0 spec/features/power_types_spec.rb