skip erratic spec

skip erratic spec

diff --git a/spec/services/username_changer_spec.rb b/spec/services/username_changer_spec.rb
index 01d788b..1057813 100644
--- a/spec/services/username_changer_spec.rb
+++ b/spec/services/username_changer_spec.rb
@@ -224,6 +224,8 @@ describe UsernameChanger do
         end
 
         it 'replaces mentions within revisions' do
+          skip("Erratically fails here raw is nil")
+
           revisions = [{ raw: "Hello Foo" }, { title: "new topic title" }, { raw: "Hello @foo!" }, { raw: "Hello @foo!!" }]
           post = create_post_and_change_username(raw: "Hello @foo", revisions: revisions)
 
@@ -232,6 +234,7 @@ describe UsernameChanger do
 
           expect(post.revisions.count).to eq(4)
 
+          # fails here sometimes with raw is nil
           expect(post.revisions[0].modifications["raw"][0]).to eq("Hello @bar")
           expect(post.revisions[0].modifications["raw"][1]).to eq("Hello Foo")
           expect(post.revisions[0].modifications["cooked"][0]).to eq(%Q(<p>Hello <a class="mention" href="/u/bar">@bar</a></p>))

GitHub sha: 661d89f4

This was a heisentest, possibly fixed in:

#3be3c50c7e

or

#c67c2dc638

1 Like