зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
Add deprecated fallback at telegram/bot/rspec/integration
Этот коммит содержится в:
@@ -1,6 +1,6 @@
|
||||
require 'integration_helper'
|
||||
|
||||
RSpec.describe DefaultBotController, :telegram_bot, type: :request do
|
||||
RSpec.describe DefaultBotController, telegram_bot: :rails do
|
||||
describe '#start' do
|
||||
subject { -> { dispatch_command :start } }
|
||||
it { should respond_with_message 'from default' }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require 'integration_helper'
|
||||
|
||||
RSpec.describe NamedBotController, :telegram_bot, type: :request do
|
||||
RSpec.describe NamedBotController, telegram_bot: :rails do
|
||||
let(:bot) { Telegram.bots[:named] }
|
||||
describe '#start' do
|
||||
subject { -> { dispatch_command :start } }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require 'integration_helper'
|
||||
|
||||
RSpec.describe OtherBotController, :telegram_bot, type: :request do
|
||||
RSpec.describe OtherBotController, telegram_bot: :rails do
|
||||
let(:bot) { Telegram.bots[:other] }
|
||||
describe '#start' do
|
||||
subject { -> { dispatch_command :start } }
|
||||
|
||||
@@ -32,6 +32,14 @@ RSpec.configure do |config|
|
||||
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
||||
end
|
||||
|
||||
# This config option will be enabled by default on RSpec 4,
|
||||
# but for reasons of backwards compatibility, you have to
|
||||
# set it on RSpec 3.
|
||||
#
|
||||
# It causes the host group and examples to inherit metadata
|
||||
# from the shared context.
|
||||
config.shared_context_metadata_behavior = :apply_to_host_groups
|
||||
|
||||
config.mock_with :rspec do |mocks|
|
||||
# Prevents you from mocking or stubbing a method that does not exist on
|
||||
# a real object. This is generally recommended, and will default to
|
||||
|
||||
Ссылка в новой задаче
Block a user