Skip to content

Commit

Permalink
Fix deprecation warnings (#148)
Browse files Browse the repository at this point in the history
> DEPRECATION WARNING: The `exist` matcher overrides one built-in by
> RSpec; use `expect(Pathname.new(path)).to exist` instead
  • Loading branch information
teoljungberg authored May 26, 2024
1 parent 2a42596 commit 14107cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/generators/fx/function/function_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
run_generator ["test", "--no-migration"]

expect(function_definition).to exist
expect(migration_file(migration)).not_to exist
expect(Pathname.new(migration_file(migration))).not_to exist
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/generators/fx/trigger/trigger_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
run_generator ["test", {"table_name" => "some_table"}, "--no-migration"]

expect(trigger_definition).to exist
expect(migration_file(migration)).not_to exist
expect(Pathname.new(migration_file(migration))).not_to exist
end
end

Expand Down

0 comments on commit 14107cb

Please sign in to comment.