Sha256: 531089056633775b5595552f89f9be0a85b877309fee6966cfb7a5a75a60f401

Contents?: true

Size: 1.08 KB

Versions: 21

Compression:

Stored size: 1.08 KB

Contents

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

#We are using the CHROME module as a test because it's fairly standardized

RSpec.describe "lib/platform" do
  it "can list drivers" do
    platforms = Flok.platforms
    expect(platforms.class).to eq(Array)
    expect(platforms.first.class).to eq(String)
    expect(platforms).to include("chrome")
  end

  it "can list platform specific config_yml" do
    debug_yml = Flok::Platform.config_yml("chrome", "DEBUG")
    release_yml = Flok::Platform.config_yml("chrome", "RELEASE")

    expect(debug_yml.keys).not_to eq(0)

    #Should not have same modules (at least for chrome)
    expect(release_yml["mods"].count).not_to eq(release_yml.keys.count)
  end

  it "can list modules specific to a platform and environment" do
    debug_mods = Flok::Platform.mods("chrome", "DEBUG")
    release_mods = Flok::Platform.mods("chrome", "RELEASE")

    expect(debug_mods.count).not_to eq(0)

    #Should not have same modules (at least for chrome) in debug and release
    expect(debug_mods.count).not_to eq(release_mods.count)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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