diff --git a/spec/generators/fx/function/function_generator_spec.rb b/spec/generators/fx/function/function_generator_spec.rb index 0c24c2c..a9dfcdc 100644 --- a/spec/generators/fx/function/function_generator_spec.rb +++ b/spec/generators/fx/function/function_generator_spec.rb @@ -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 diff --git a/spec/generators/fx/trigger/trigger_generator_spec.rb b/spec/generators/fx/trigger/trigger_generator_spec.rb index 8d3e137..b56305d 100644 --- a/spec/generators/fx/trigger/trigger_generator_spec.rb +++ b/spec/generators/fx/trigger/trigger_generator_spec.rb @@ -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