Skip to content

Commit

Permalink
WIP Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrocha committed Nov 19, 2024
1 parent 8cfe769 commit 09b2e33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spec/tapioca/cli/dsl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ def self.gather_constants

it "generates RBIs for lower versions of activerecord-typedstore" do
@project.require_real_gem("activerecord-typedstore", "1.4.0")
@project.require_real_gem("sqlite3", "1.7.3")
@project.require_real_gem("sqlite3", "~> 2.1")
@project.bundle_install!
@project.write!("lib/post.rb", <<~RB)
require "active_record"
Expand Down Expand Up @@ -2206,7 +2206,7 @@ class Tapioca::Dsl::Compilers::ActiveRecordRelations

@project.require_mock_gem(foo)
@project.require_real_gem("activerecord", require: "active_record")
@project.require_real_gem("sqlite3", "1.7.3")
@project.require_real_gem("sqlite3", "~> 2.1")
@project.bundle_install!

result = @project.tapioca("dsl Post")
Expand Down Expand Up @@ -3018,7 +3018,7 @@ class Application < Rails::Application
describe "options for built-in compilers" do
it "is able to pass 'untyped' to ActiveRecordColumns compiler" do
@project.require_real_gem("activerecord")
@project.require_real_gem("sqlite3", "1.7.3")
@project.require_real_gem("sqlite3", "~> 2.1")
@project.bundle_install!
@project.write!("lib/post.rb", <<~RB)
require "active_record"
Expand Down
3 changes: 2 additions & 1 deletion spec/tapioca/cli/gem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,7 @@ module Foo; end
class Foo::Engine < ::Rails::Engine
class << self
def __callbacks; end
def __callbacks=(new_value); end
end
end
Expand All @@ -1281,7 +1282,7 @@ class User; end
end

it "does not crash while tracking `rbtrace` constants" do
@project.require_real_gem("rbtrace", "0.4.14")
@project.require_real_gem("rbtrace", "0.5.1")
@project.bundle_install!
result = @project.tapioca("gem rbtrace")
assert_empty_stderr(result)
Expand Down

0 comments on commit 09b2e33

Please sign in to comment.