Skip to content

Commit

Permalink
Merge pull request #73 from dumparkltd/measure-update-notifications
Browse files Browse the repository at this point in the history
remove specs
  • Loading branch information
tmfrnz authored May 24, 2023
2 parents 541e442 + 8c6c4c8 commit 38860aa
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions spec/models/user_measure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@

subject { described_class.create(user: user, measure: measure) }

it "create sets the relationship_updated_at on the user" do
expect { subject }.to change { user.reload.relationship_updated_at }
end

it "create sets the relationship_updated_at on the measure" do
expect { subject }.to change { measure.reload.relationship_updated_at }
end

it "update sets the relationship_updated_at on the user" do
subject
expect { subject.touch }.to change { user.reload.relationship_updated_at }
Expand All @@ -43,14 +35,6 @@
expect { subject.destroy }.to change { measure.reload.relationship_updated_at }
end

it "create sets the relationship_updated_by_id on the user" do
expect { subject }.to change { user.reload.relationship_updated_by_id }.to(whodunnit)
end

it "create sets the relationship_updated_by_id on the measure" do
expect { subject }.to change { measure.reload.relationship_updated_by_id }.to(whodunnit)
end

it "update sets the relationship_updated_by_id on the user" do
subject
user.update_column(:relationship_updated_by_id, nil)
Expand Down

0 comments on commit 38860aa

Please sign in to comment.