-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raised the minimum Ruby/Rails versions. (#15)
Signed-off-by: Hermann Mayer <[email protected]>
- Loading branch information
Showing
32 changed files
with
147 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
RSpec.describe JabberAdmin::Commands::BanAccount do | ||
it_behaves_like 'a command', | ||
with_name: 'ban_account', | ||
with_input_args: [ | ||
with_input_kwargs: { | ||
user: '[email protected]', | ||
reason: 'test' | ||
], | ||
with_called_args: [ | ||
}, | ||
with_called_kwargs: { | ||
user: 'tom', | ||
host: 'ejabberd.local', | ||
reason: 'test' | ||
] | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
RSpec.describe JabberAdmin::Commands::CreateRoom do | ||
it_behaves_like 'a command', | ||
with_name: 'create_room', | ||
with_input_args: [ | ||
with_input_kwargs: { | ||
room: '[email protected]', | ||
host: 'ejabberd.local' | ||
], | ||
with_called_args: [ | ||
}, | ||
with_called_kwargs: { | ||
name: 'room1', | ||
service: 'conference.ejabberd.local', | ||
host: 'ejabberd.local' | ||
] | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,15 @@ | |
RSpec.describe JabberAdmin::Commands::CreateRoomWithOpts do | ||
it_behaves_like 'a command', | ||
with_name: 'create_room_with_opts', | ||
with_input_args: [ | ||
with_input_kwargs: { | ||
room: '[email protected]', | ||
host: 'ejabberd.local', | ||
members_only: true | ||
], | ||
with_called_args: [ | ||
}, | ||
with_called_kwargs: { | ||
name: 'room2', | ||
service: 'conference.ejabberd.local', | ||
host: 'ejabberd.local', | ||
options: [{ 'name' => 'members_only', 'value' => 'true' }] | ||
] | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
RSpec.describe JabberAdmin::Commands::DestroyRoom do | ||
it_behaves_like 'a command', | ||
with_name: 'destroy_room', | ||
with_input_args: [ | ||
with_input_kwargs: { | ||
room: '[email protected]', | ||
host: 'ejabberd.local' | ||
], | ||
with_called_args: [ | ||
}, | ||
with_called_kwargs: { | ||
name: 'room1', | ||
service: 'conference.ejabberd.local', | ||
host: 'ejabberd.local' | ||
] | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,13 @@ | |
|
||
it_behaves_like 'a command', | ||
with_name: 'get_room_affiliations', | ||
with_input_args: [ | ||
with_input_kwargs: { | ||
room: '[email protected]' | ||
], | ||
with_called_args: [ | ||
}, | ||
with_called_kwargs: { | ||
name: 'room1', | ||
service: 'conference.ejabberd.local' | ||
] | ||
} | ||
|
||
it 'returns the room affiliations' do | ||
expect(action).to include(a_hash_including({ | ||
|
@@ -38,13 +38,13 @@ | |
|
||
it_behaves_like 'a command', | ||
with_name: 'get_room_affiliations', | ||
with_input_args: [ | ||
with_input_kwargs: { | ||
room: '[email protected]' | ||
], | ||
with_called_args: [ | ||
}, | ||
with_called_kwargs: { | ||
name: 'room2', | ||
service: 'conference.ejabberd.local' | ||
] | ||
} | ||
|
||
it 'returns empty room affiliations' do | ||
expect(action).to eql([]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,13 @@ | |
it_behaves_like( | ||
'a command', | ||
with_name: 'get_vcard', | ||
with_input_args: [ | ||
:fn, | ||
{ user: '[email protected]' } | ||
], | ||
with_called_args: [ | ||
with_input_args: [:fn], | ||
with_input_kwargs: { user: '[email protected]' }, | ||
with_called_kwargs: { | ||
user: 'admin', | ||
host: 'jabber.local', | ||
name: 'FN' | ||
], | ||
}, | ||
stubbed_response: '{"content":"The Admin"}' | ||
) do | ||
describe 'return value', :vcr do | ||
|
@@ -39,16 +37,14 @@ | |
'a command', | ||
with_name: 'get_vcard', | ||
with_called_name: 'get_vcard2', | ||
with_input_args: [ | ||
'n.given', | ||
{ user: '[email protected]' } | ||
], | ||
with_called_args: [ | ||
with_input_args: ['n.given'], | ||
with_input_kwargs: { user: '[email protected]' }, | ||
with_called_kwargs: { | ||
user: 'admin', | ||
host: 'jabber.local', | ||
name: 'N', | ||
subname: 'GIVEN' | ||
], | ||
}, | ||
stubbed_response: '{"content":"Aang"}' | ||
) do | ||
describe 'return value', :vcr do | ||
|
@@ -64,16 +60,14 @@ | |
'a command', | ||
with_name: 'get_vcard', | ||
with_called_name: 'get_vcard2_multi', | ||
with_input_args: [ | ||
'org.orgunit[]', | ||
{ user: '[email protected]' } | ||
], | ||
with_called_args: [ | ||
with_input_args: ['org.orgunit[]'], | ||
with_input_kwargs: { user: '[email protected]' }, | ||
with_called_kwargs: { | ||
user: 'admin', | ||
host: 'jabber.local', | ||
name: 'ORG', | ||
subname: 'ORGUNIT' | ||
], | ||
}, | ||
stubbed_response: '["Marketing","Production"]' | ||
) do | ||
describe 'return value', :vcr do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
RSpec.describe JabberAdmin::Commands::MucRegisterNick do | ||
it_behaves_like 'a command', | ||
with_name: 'muc_register_nick', | ||
with_input_args: [ | ||
with_input_kwargs: { | ||
user: '[email protected]', | ||
nick: 'TomTom' | ||
], | ||
with_called_args: [ | ||
}, | ||
with_called_kwargs: { | ||
jid: '[email protected]', | ||
serverhost: 'ejabberd.local', | ||
nick: 'TomTom' | ||
] | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,14 @@ | |
RSpec.describe JabberAdmin::Commands::Register do | ||
it_behaves_like 'a command', | ||
with_name: 'register', | ||
with_input_args: [ | ||
with_input_kwargs: { | ||
user: '[email protected]', | ||
password: 'password' | ||
], | ||
with_called_args: [ | ||
}, | ||
with_called_kwargs: { | ||
check_res_body: false, | ||
user: 'tom', | ||
host: 'ejabberd.local', | ||
password: 'password' | ||
] | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.