# frozen_string_literal: true

require 'spec_helper'

describe FeatureFlagsHelper do
  set(:project) { create(:project) }

  context '#unleash_api_url' do
    subject { helper.unleash_api_url(project) }

    it { is_expected.to end_with("/api/v4/feature_flags/unleash/#{project.id}") }
  end

  context '#unleash_api_instance_id' do
    subject { helper.unleash_api_instance_id(project) }

    it { is_expected.not_to be_empty }
  end
end
