Skip to content

Commit

Permalink
Remove custom "context" alias for spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jnbt committed Apr 17, 2024
1 parent 501ab48 commit cec4a47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 4 additions & 4 deletions spec/play_store/product_acknowledgements/response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
end

describe "#acknowledged?" do
context "when result present" do
describe "when result present" do
let(:result) { "" }
let(:error_data) { nil }

Expand All @@ -17,7 +17,7 @@
end
end

context "when result is not present" do
describe "when result is not present" do
let(:result) { nil }
let(:error_data) { nil }

Expand All @@ -30,7 +30,7 @@
end

describe "#error" do
context "when error present" do
describe "when error present" do
let(:result) { nil }
let(:error_data) do
Module.new do
Expand All @@ -53,7 +53,7 @@ def body
end
end

context "when error is not present" do
describe "when error is not present" do
let(:result) { "" }
let(:error_data) { nil }

Expand Down
6 changes: 0 additions & 6 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ def in_continuous_integration_environment?
ENV["DEBUG"] && Google::APIClient.logger.level = Logger::DEBUG

module MiniTest
class Spec
class << self
alias context describe
end
end

module Assertions
# The first parameter must be ```true```, not coercible to true.
def assert_true(obj, msg = nil)
Expand Down

0 comments on commit cec4a47

Please sign in to comment.