Commit 97a24815 authored by Kamil Trzciński's avatar Kamil Trzciński

Fix feature_flags_helper specs

parent 918d9b5c
......@@ -6,6 +6,6 @@ module FeatureFlagsHelper
end
def unleash_api_instanceid(project)
project.feature_flag_instance_token
project.feature_flags_instance_token
end
end
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_instanceid' do
subject { helper.unleash_api_instanceid(project) }
it { is_expected.not_to be_empty }
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment