Skip to content

Commit

Permalink
Merge pull request #286 from ifad/chore/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
tagliala authored Apr 23, 2024
2 parents 19ede90 + f5ace57 commit b470fb9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/chrono_model/time_machine/history_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def of(object)
# name has the "::History" suffix but that is never going to be
# present in the data.
#
# As such it is overriden here to return the same contents that
# As such it is overridden here to return the same contents that
# the parent would have returned.
delegate :sti_name, to: :superclass

Expand All @@ -132,7 +132,7 @@ def find_sti_class(type_name)
end

# The history id is `hid`, but this cannot set as primary key
# or temporal assocations will break. Solutions are welcome.
# or temporal associations will break. Solutions are welcome.
def id
hid
end
Expand Down
4 changes: 2 additions & 2 deletions spec/support/adapter/structure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# adapter methods tests, that look up in the database directly whether the
# expected objects have been created.
#
# The structure defintiion below serves as a blueprint of what it can be
# defined, ans as a reference of what it is expected to have been created by
# The structure definition below serves as a blueprint of what it can be
# defined, and as a reference of what it is expected to have been created by
# the +ChronoModel::Adapter+ methods.
#
module ChronoTest
Expand Down
12 changes: 6 additions & 6 deletions spec/support/matchers/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def description
def failure_message
"expected #{table} ".tap do |message|
message << [
("to exist in the #{history_schema} schema" unless @existance),
("to exist in the #{history_schema} schema" unless @existence),
("to inherit from #{temporal_schema}.#{table}" unless @inheritance),
('to have a timeline consistency constraint' unless @constraint),
('to have history indexes' unless @indexes)
Expand All @@ -113,7 +113,7 @@ def failure_message
def failure_message_when_negated
"expected #{table} ".tap do |message|
message << [
("to not exist in the #{history_schema} schema" if @existance),
("to not exist in the #{history_schema} schema" if @existence),
("to not inherit from #{temporal_schema}.#{table}" if @inheritance),
('to not have a timeline consistency constraint' if @constraint),
('to not have history indexes' if @indexes)
Expand All @@ -124,7 +124,7 @@ def failure_message_when_negated
private

def table_exists?
@existance = relation_exists? in: history_schema
@existence = relation_exists? in: history_schema
end

def inherits_from_temporal?
Expand Down Expand Up @@ -214,7 +214,7 @@ def description
def failure_message
"expected #{table} ".tap do |message|
message << [
("to exist in the #{public_schema} schema" unless @existance),
("to exist in the #{public_schema} schema" unless @existence),
('to be an updatable view' unless @updatable),
('to have an INSERT trigger' unless @insert_trigger),
('to have an UPDATE trigger' unless @update_trigger),
Expand All @@ -226,7 +226,7 @@ def failure_message
def failure_message_when_negated
"expected #{table} ".tap do |message|
message << [
("to not exist in the #{public_schema} schema" if @existance),
("to not exist in the #{public_schema} schema" if @existence),
('to not be an updatable view' if @updatable),
('to not have an INSERT trigger' if @insert_trigger),
('to not have an UPDATE trigger' if @update_trigger),
Expand All @@ -238,7 +238,7 @@ def failure_message_when_negated
private

def view_exists?
@existance = relation_exists? in: public_schema, kind: :view
@existence = relation_exists? in: public_schema, kind: :view
end

def is_updatable?
Expand Down

0 comments on commit b470fb9

Please sign in to comment.