spec/spec_helper.rb in maestrano-connector-rails-2.0.2.pre.RC5 vs spec/spec_helper.rb in maestrano-connector-rails-2.0.2.pre.RC6
- old
+ new
@@ -25,10 +25,10 @@
config.before(:each) do
allow(Maestrano::Connector::Rails::External).to receive(:external_name).and_return('External app')
allow(Maestrano::Connector::Rails::External).to receive(:get_client).and_return(Object.new)
allow(Maestrano::Connector::Rails::External).to receive(:entities_list).and_return(%w(entity1 entity2))
- stub_request(:get, "#{Maestrano['default'].param('api.host')}/api/v1/account/groups/").
+ stub_request(:get, %r(#{Maestrano['default'].param('api.host')}/api/v1/account/groups/[\w-]*)).
to_return({status: 200, body: "{}", headers: {}})
Rails.cache.clear
end
end