Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compatibility/cck_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# All step definition and required supporting logic is contained here, the CCK gem proper contains the source of truth
# of the "golden" NDJSON files and attachments / miscellaneous files
describe CCK, :cck do
RSpec.describe CCK, :cck do
let(:cucumber_command) { 'bundle exec cucumber --publish-quiet --profile none --format message' }

# CCK v22 conformance
Expand Down
2 changes: 1 addition & 1 deletion compatibility/spec/cck/keys_checker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'cucumber/messages'
require_relative '../../support/cck/keys_checker'

describe CCK::KeysChecker do
RSpec.describe CCK::KeysChecker do
describe '#compare' do
let(:expected_kvps) { Cucumber::Messages::Attachment.new(url: 'https://foo.com', file_name: 'file.extension', test_step_id: 123_456) }
let(:missing_kvps) { Cucumber::Messages::Attachment.new(url: 'https://foo.com') }
Expand Down
2 changes: 1 addition & 1 deletion compatibility/spec/cck/messages_comparator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'cucumber/messages'
require_relative '../../support/cck/messages_comparator'

describe CCK::MessagesComparator do
RSpec.describe CCK::MessagesComparator do
describe '#errors' do
context 'when executed as part of a CI' do
before { allow(ENV).to receive(:[]).with('CI').and_return(true) }
Expand Down
2 changes: 1 addition & 1 deletion compatibility/spec/compatibility_kit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative '../support/compatibility_kit'

describe CompatibilityKit do
RSpec.describe CompatibilityKit do
let(:features_path) { File.expand_path("#{File.dirname(__FILE__)}/../features") }

describe '.supporting_code_for' do
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/cli/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'yaml'

describe Cucumber::Cli::Configuration do
RSpec.describe Cucumber::Cli::Configuration do
def given_cucumber_yml_defined_as(hash_or_string)
allow(File).to receive(:exist?).and_return(true)
cucumber_yml = hash_or_string.is_a?(Hash) ? hash_or_string.to_yaml : hash_or_string
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/cli/main_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'yaml'

describe Cucumber::Cli::Main do
RSpec.describe Cucumber::Cli::Main do
subject { described_class.new(args, stdout, stderr, kernel) }

let(:args) { [] }
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/cli/options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'yaml'
require 'cucumber/cli/options'

describe Cucumber::Cli::Options do
RSpec.describe Cucumber::Cli::Options do
def given_cucumber_yml_defined_as(hash_or_string)
allow(File).to receive(:exist?).and_return(true)

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/cli/profile_loader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'yaml'

describe Cucumber::Cli::ProfileLoader do
RSpec.describe Cucumber::Cli::ProfileLoader do
subject(:loader) { described_class.new }

def given_cucumber_yml_defined_as(hash_or_string)
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/cli/rerun_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

describe Cucumber::Cli::RerunFile do
RSpec.describe Cucumber::Cli::RerunFile do
let(:rerun_file) { described_class.new('@rerun.txt') }

it 'expects rerun files to have a leading @' do
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper'

module Cucumber
describe Configuration do
RSpec.describe Configuration do
describe '.default' do
subject { described_class.default }

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/constantize_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module Html end

module Cucumber
describe Constantize do
RSpec.describe Constantize do
include described_class

it 'loads pretty formatter' do
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/cucumber_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

describe Cucumber do
RSpec.describe Cucumber do
describe '.deprecate' do
it 'outputs a message to $stderr' do
allow(Kernel).to receive(:warn)
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/events_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Cucumber
describe Events do
RSpec.describe Events do
it 'builds a registry without failing' do
expect { described_class.registry }.not_to raise_error
end
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/file_specs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'cucumber/file_specs'

module Cucumber
describe FileSpecs do
RSpec.describe FileSpecs do
let(:file_specs) { described_class.new(['features/foo.feature:1:2:3', 'features/bar.feature:4:5:6']) }
let(:locations) { file_specs.locations }
let(:files) { file_specs.files }
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/filters/activate_steps_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'cucumber/core/gherkin/writer'
require 'cucumber/core'

describe Cucumber::Filters::ActivateSteps do
RSpec.describe Cucumber::Filters::ActivateSteps do
include Cucumber::Core::Gherkin::Writer
include Cucumber::Core

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/filters/gated_receiver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'cucumber/filters/gated_receiver'

describe Cucumber::Filters::GatedReceiver do
RSpec.describe Cucumber::Filters::GatedReceiver do
subject(:gated_receiver) { described_class.new(receiver) }

let(:receiver) { double(:receiver) }
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/filters/retry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
require 'cucumber/core'
require 'cucumber/events'

describe Cucumber::Filters::Retry do
RSpec.describe Cucumber::Filters::Retry do
include Cucumber::Core::Gherkin::Writer
include Cucumber::Core
include Cucumber::Events
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/filters/tag_limits/test_case_index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'cucumber/filters/tag_limits'

describe Cucumber::Filters::TagLimits::TestCaseIndex do
RSpec.describe Cucumber::Filters::TagLimits::TestCaseIndex do
subject(:index) { described_class.new }

let(:test_cases) do
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/filters/tag_limits/verifier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'cucumber/filters/tag_limits'

describe Cucumber::Filters::TagLimits::Verifier do
RSpec.describe Cucumber::Filters::TagLimits::Verifier do
describe '#verify!' do
subject(:verifier) { described_class.new(tag_limits) }

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/filters/tag_limits_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'cucumber/filters/tag_limits'

describe Cucumber::Filters::TagLimits do
RSpec.describe Cucumber::Filters::TagLimits do
subject(:filter) { described_class.new(tag_limits, receiver) }

let(:tag_limits) { double(:tag_limits) }
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/ansicolor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module Cucumber
module Formatter
describe ANSIColor do
RSpec.describe ANSIColor do
include described_class

it 'wraps passed_param with bold green and reset to green' do
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/backtrace_filter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'cucumber/formatter/backtrace_filter'

describe Cucumber::Formatter::BacktraceFilter do
RSpec.describe Cucumber::Formatter::BacktraceFilter do
subject(:exception) { exception_klass.new }

let(:exception_klass) do
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/console_counts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module Cucumber
module Formatter
describe ConsoleCounts do
RSpec.describe ConsoleCounts do
it 'works for zero' do
config = Configuration.new
counts = described_class.new(config)
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/console_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module Cucumber
module Formatter
describe Console do
RSpec.describe Console do
include described_class
it 'indents when padding is positive' do
res = indent('a line', 2)
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/curl_option_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
require 'cucumber/formatter/io'
require 'support/shared_context/http_server'

describe Cucumber::Formatter::CurlOptionParser do
RSpec.describe Cucumber::Formatter::CurlOptionParser do
describe '.parse' do
context 'when a simple URL is given' do
it 'returns the URL' do
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/duration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module Cucumber
module Formatter
describe Duration do
RSpec.describe Duration do
include described_class

it 'formats ms' do
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/fail_fast_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

module Cucumber
module Formatter
describe FailFast do
RSpec.describe FailFast do
include Cucumber::Core
include Cucumber::Core::Gherkin::Writer

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/http_io_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def io(path_or_url_or_io, error_stream)
end
end

describe HTTPIO do
RSpec.describe HTTPIO do
include_context 'an HTTP server accepting file requests'

# Close during the test so the request is done while server still runs
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/interceptor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper'
require 'cucumber/formatter/interceptor'

describe Cucumber::Formatter::Interceptor::Pipe do
RSpec.describe Cucumber::Formatter::Interceptor::Pipe do
let(:pipe) { instance_spy(IO) }

describe '#wrap!' do
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/io_http_buffer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DummyReporter
def report(banner); end
end

describe IOHTTPBuffer do
RSpec.describe IOHTTPBuffer do
include_context 'an HTTP server accepting file requests'

let(:report_size) { 10_000_000 }
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/json_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require 'cucumber/cli/options'
require 'json'

describe Cucumber::Formatter::Json do
RSpec.describe Cucumber::Formatter::Json do
extend Cucumber::Formatter::SpecHelperDsl
include Cucumber::Formatter::SpecHelper

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/junit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def write_file(feature_filename, data)
end
end

describe Junit do
RSpec.describe Junit do
extend SpecHelperDsl
include SpecHelper

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

module Cucumber
module Formatter
describe Message do
RSpec.describe Message do
extend SpecHelperDsl
include SpecHelper

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/pretty_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

module Cucumber
module Formatter
describe Pretty do
RSpec.describe Pretty do
extend SpecHelperDsl
include SpecHelper

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/progress_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

module Cucumber
module Formatter
describe Progress do
RSpec.describe Progress do
extend SpecHelperDsl
include SpecHelper

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/publish_banner_printer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

module Cucumber
module Formatter
describe PublishBannerPrinter do
RSpec.describe PublishBannerPrinter do
extend SpecHelperDsl
include SpecHelper

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/query/hook_by_test_step_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/query/hook_by_test_step'

describe Cucumber::Formatter::Query::HookByTestStep do
RSpec.describe Cucumber::Formatter::Query::HookByTestStep do
extend Cucumber::Formatter::SpecHelperDsl
include Cucumber::Formatter::SpecHelper

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/query/pickle_by_test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Cucumber
module Formatter
module Query
describe PickleByTest do
RSpec.describe PickleByTest do
extend SpecHelperDsl
include SpecHelper

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Cucumber
module Formatter
module Query
describe TestCaseStartedByTestCase do
RSpec.describe TestCaseStartedByTestCase do
extend SpecHelperDsl
include SpecHelper

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/rerun_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

module Cucumber
module Formatter
describe Rerun do
RSpec.describe Rerun do
include Cucumber::Core::Gherkin::Writer
include Cucumber::Core

Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/formatter/url_reporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

module Cucumber
module Formatter
describe URLReporter do
RSpec.describe URLReporter do
let(:io) { StringIO.new }

subject { described_class.new(io) }
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/glue/proto_world_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

module Cucumber
module Glue
describe ProtoWorld do
RSpec.describe ProtoWorld do
let(:runtime) { double('runtime') }
let(:language) { double('language') }
let(:world) { Object.new.extend(described_class.for(runtime, language)) }
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/glue/registry_and_more_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

module Cucumber
module Glue
describe StepDefinition do
RSpec.describe StepDefinition do
let(:user_interface) { double('user interface') }
let(:registry) { support_code.registry }
let(:support_code) { Cucumber::Runtime::SupportCode.new(user_interface) }
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/glue/snippet_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

module Cucumber
module Glue
describe Snippet do
RSpec.describe Snippet do
include Cucumber::Formatter::Console
let(:code_keyword) { 'Given' }
let(:snippet) do
Expand Down
Loading