-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
30 additions
and
608 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 was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module SlackRubyBot | ||
VERSION = '0.15.1' | ||
VERSION = '0.16.0' | ||
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 |
---|---|---|
@@ -1,41 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
describe SlackRubyBot::Client do | ||
describe '#send_gifs?' do | ||
context 'without giphy is false', unless: WithGiphy.env? do | ||
it 'by default' do | ||
expect(subject.send_gifs?).to be false | ||
end | ||
|
||
it 'when set to true' do | ||
subject.send_gifs = true | ||
expect(subject.send_gifs?).to be false | ||
end | ||
|
||
it 'when set to true via config' do | ||
SlackRubyBot::Config.send_gifs = true | ||
expect(SlackRubyBot::Config.send_gifs?).to be false | ||
end | ||
end | ||
|
||
context 'with giphy', if: WithGiphy.env? do | ||
it 'default is true' do | ||
expect(subject.send_gifs?).to be true | ||
end | ||
|
||
it 'defaults to SlackRubyBot::Config.send_gifs? if set' do | ||
SlackRubyBot::Config.send_gifs = false | ||
expect(subject.send_gifs?).to be false | ||
end | ||
|
||
it 'client setting takes precedence' do | ||
SlackRubyBot::Config.send_gifs = true | ||
subject.send_gifs = false | ||
expect(subject.send_gifs?).to be false | ||
SlackRubyBot::Config.send_gifs = false | ||
subject.send_gifs = true | ||
expect(subject.send_gifs?).to be true | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.