-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf542c5
commit 560a582
Showing
4 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ruby:2.7 | ||
FROM ruby:3.0 | ||
|
||
WORKDIR /usr/src/app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
require 'spec_helper' | ||
|
||
class FakeAdapter | ||
def self.define_column_methods(*args) | ||
# no-op | ||
end | ||
|
||
include ActiveRecord::ConnectionAdapters::MySQL::ColumnMethods | ||
end | ||
|
||
module ActiveRecord | ||
module ConnectionAdapters | ||
module MySQL | ||
RSpec.describe ColumnMethods do | ||
it "correctly calls based on enum" do | ||
instance = FakeAdapter.new | ||
expect(instance).to receive(:column).with(:status, :enum, limit: [:active, :archived]) | ||
instance.enum(:status, limit: [:active, :archived]) | ||
end | ||
end | ||
end | ||
end | ||
end |