DEV: Apply syntax_tree formatting to spec/*

This commit is contained in:
David Taylor
2023-01-09 11:18:21 +00:00
parent 0cf6421716
commit cb932d6ee1
907 changed files with 58693 additions and 45909 deletions

View File

@@ -4,16 +4,12 @@ RSpec.describe PostReplyKey do
describe "#reply_key" do
it "should format the reply_key correctly" do
hex = SecureRandom.hex
post_reply_key = Fabricate(:post_reply_key,
reply_key: hex
)
post_reply_key = Fabricate(:post_reply_key, reply_key: hex)
raw_key = PostReplyKey.where(id: post_reply_key.id)
.pluck("reply_key::text")
.first
raw_key = PostReplyKey.where(id: post_reply_key.id).pluck("reply_key::text").first
expect(raw_key).to_not eq(hex)
expect(raw_key.delete('-')).to eq(hex)
expect(raw_key.delete("-")).to eq(hex)
expect(PostReplyKey.find(post_reply_key.id).reply_key).to eq(hex)
end
end