Skip to content

Commit

Permalink
Skiping tests on gql versions incompatible with zeitwerk
Browse files Browse the repository at this point in the history
  • Loading branch information
00dav00 committed May 1, 2024
1 parent 94827c9 commit 36091e6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/generators/graphql_devise/install_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
require 'rails_helper'
require 'generators/graphql_devise/install_generator'

RSpec.describe GraphqlDevise::InstallGenerator, type: :generator do
# NOTE: Skipping tests because of a problem between zeitwerk and GQL versions 2.1.0 & 2.2.14
skip_generator_tests =
Gem::Version.new(GraphQL::VERSION).between?(
Gem::Version.new('2.1.0'),
Gem::Version.new('2.2.14')
) && Gem::Version.new(Rails.version) >= Gem::Version.new('7.0.0')

RSpec.describe GraphqlDevise::InstallGenerator, type: :generator, skip: skip_generator_tests do
destination File.expand_path('../../../../gqld_dummy', __dir__)

let(:routes_path) { "#{destination_root}/config/routes.rb" }
Expand Down

0 comments on commit 36091e6

Please sign in to comment.