diff options
author | Phil Hughes <me@iamphill.com> | 2018-01-30 13:52:38 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-30 13:52:38 +0300 |
commit | f9acd8056984eb9261c7b883bded076b8a26f2a0 (patch) | |
tree | 1b8abd3d7aa3f9a9ba167f8b3471ba6421229455 /spec | |
parent | b367cc0ca28de6b4e735939b1981668ff21b8ecf (diff) |
fixed failing specs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/members/share_with_group_spec.rb | 2 | ||||
-rw-r--r-- | spec/javascripts/api_spec.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/projects/members/share_with_group_spec.rb b/spec/features/projects/members/share_with_group_spec.rb index 3198798306c..4cf48098401 100644 --- a/spec/features/projects/members/share_with_group_spec.rb +++ b/spec/features/projects/members/share_with_group_spec.rb @@ -122,7 +122,7 @@ feature 'Project > Members > Share with Group', :js do select2 group.id, from: '#link_group_id' fill_in 'expires_at_groups', with: (Time.now + 4.5.days).strftime('%Y-%m-%d') - page.find('body').click + click_on 'share-with-group-tab' find('.btn-create').click end diff --git a/spec/javascripts/api_spec.js b/spec/javascripts/api_spec.js index 2e45c5e2712..cf3a76d0d2e 100644 --- a/spec/javascripts/api_spec.js +++ b/spec/javascripts/api_spec.js @@ -37,7 +37,7 @@ describe('Api', () => { describe('group', () => { it('fetches a group', (done) => { const groupId = '123456'; - const expectedUrl = `${dummyUrlRoot}/api/${dummyApiVersion}/groups/${groupId}.json`; + const expectedUrl = `${dummyUrlRoot}/api/${dummyApiVersion}/groups/${groupId}`; mock.onGet(expectedUrl).reply(200, { name: 'test', }); |