Sha256: 1748f5ce514bc32d484fb7069006d0a00914cd8db1d64fe51634642473438965

Contents?: true

Size: 404 Bytes

Versions: 6

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

require "spec_helpers"

describe Wayfarer::Config::Capybara do
  let(:env) { {} }
  subject(:capybara) { Wayfarer::Config::Capybara.new(env) }

  describe "#driver" do
    context "with env var set" do
      before { env["WAYFARER_CAPYBARA_DRIVER"] = "cuprite" }

      it "parses the env var" do
        expect(capybara.driver).to be(:cuprite)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wayfarer-0.4.6 spec/config/capybara_spec.rb
wayfarer-0.4.5 spec/config/capybara_spec.rb
wayfarer-0.4.4 spec/config/capybara_spec.rb
wayfarer-0.4.3 spec/config/capybara_spec.rb
wayfarer-0.4.2 spec/config/capybara_spec.rb
wayfarer-0.4.1 spec/config/capybara_spec.rb