Skip to content

Commit

Permalink
Merge pull request #181 from hypermkt/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
hypermkt authored Dec 9, 2024
2 parents 8b49855 + 382eb9b commit d231d1a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions spec/activerecord-bitemporal/association_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def self.name
it { expect { subject }.to change { employee1.reload.name }.from("Tom").to("Kevin") }
it { expect { subject }.to change { employee2.reload.name }.from("Mami").to("Mado") }

context "associatoins valid_datetime without vaild_at" do
context "associations valid_datetime without valid_at" do
subject {
company.reload # clear cache
company.employees_attributes = [
Expand All @@ -286,7 +286,7 @@ def self.name
it { expect(subject.map(&:valid_datetime)).to eq [nil, nil] }
end

context "associatoins valid_datetime with vaild_at" do
context "associations valid_datetime with valid_at" do
subject {
ActiveRecord::Bitemporal.valid_at(time_current) do
company.reload # clear cache
Expand Down Expand Up @@ -446,7 +446,7 @@ def self.name
it { expect(employee1.valid_from).to eq employee2.valid_from }
end

context "nested associastion" do
context "nested association" do
let(:valid_from) { "2019/1/1" }
let!(:company) { Company.new(valid_from: valid_from) }
let!(:employee) { company.employees.new }
Expand Down
2 changes: 1 addition & 1 deletion spec/activerecord-bitemporal/bitemporal_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2839,7 +2839,7 @@ class EmployeeWithUniquness < Employee
end
end

context "wiht lock! by application side" do
context "with lock! by application side" do
let!(:company) { Company.create!(name: "Company") }
let!(:company2) { Company.create!(name: "Company") }
subject do
Expand Down
2 changes: 1 addition & 1 deletion spec/activerecord-bitemporal/uniqueness_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class DepartmentWithUniquness < Department
context "update to name" do
subject { employee.update!(name: "Tom") }

context "exitst other records" do
context "exist other records" do
context "same name" do
let!(:other) { EmployeeWithUniquness.create!(name: "Jane").tap { |m| m.update!(name: "Tom") } }
it { expect { subject }.to raise_error ActiveRecord::RecordInvalid }
Expand Down
4 changes: 2 additions & 2 deletions spec/activerecord-bitemporal/visualizer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper'

RSpec.describe ActiveRecord::Bitemporal::Visualizer do
describe 'visuablize' do
describe 'visualize' do
let(:time) { '2022-05-23 18:06:06.712' }
around { |e| Timecop.freeze(time) { e.run } }
subject(:figure) { described_class.visualize(employee) }
Expand Down Expand Up @@ -350,7 +350,7 @@
end
end

describe 'visuablize date type' do
describe 'visualize date type' do
let(:time) { '2022-05-23 18:06:06.712' }
around { |e| Timecop.freeze(time) { e.run } }
subject(:figure) { described_class.visualize(department) }
Expand Down

0 comments on commit d231d1a

Please sign in to comment.