spec/server/api/tenant_change_spec.rb in hippo-fw-0.9.4 vs spec/server/api/tenant_change_spec.rb in hippo-fw-0.9.5
- old
+ new
@@ -6,10 +6,10 @@
let(:tenant) { FactoryGirl.create :tenant, slug: 'foo' }
let!(:user) { FactoryGirl.create :user, tenant: tenant, role_names: ['administrator'] }
it 'sends email when tenant identifier changes' do
- post '/api/hippo/tenants.json', {
+ post '/api/hippo/tenant.json', {
'slug' => 'RED'
}.to_json, {
'HTTP_AUTHORIZATION' => user.jwt_token,
'HTTP_ACCEPT' => 'application/json',
'SERVER_NAME' => "#{tenant.slug}.example.ua",