diff --git a/spec/components/search_spec.rb b/spec/components/search_spec.rb
index 2d031cc7ecc..3c0df76f9db 100644
--- a/spec/components/search_spec.rb
+++ b/spec/components/search_spec.rb
@@ -16,7 +16,7 @@ describe Search do
context 'post indexing observer' do
before do
@category = Fabricate(:category, name: 'america')
- @topic = Fabricate(:topic, title: 'sam test topic', category: @category)
+ @topic = Fabricate(:topic, title: 'sam saffron test topic', category: @category)
@post = Fabricate(:post, topic: @topic, raw: 'this fun test ')
@indexed = Topic.exec_sql("select search_data from posts_search where id = #{@post.id}").first["search_data"]
end
diff --git a/spec/fabricators/topic_fabricator.rb b/spec/fabricators/topic_fabricator.rb
index 84eb17fe837..0a2e16ba164 100644
--- a/spec/fabricators/topic_fabricator.rb
+++ b/spec/fabricators/topic_fabricator.rb
@@ -1,6 +1,6 @@
Fabricator(:topic) do
user
- title { sequence(:title) { |i| "Test topic #{i}" } }
+ title { sequence(:title) { |i| "This is a test topic #{i}" } }
end
Fabricator(:deleted_topic, from: :topic) do
@@ -12,7 +12,7 @@ end
Fabricator(:private_message_topic, from: :topic) do
user
- title { sequence(:title) { |i| "Private Message #{i}" } }
+ title { sequence(:title) { |i| "This is a private message #{i}" } }
archetype "private_message"
topic_allowed_users{|t| [
Fabricate.build(:topic_allowed_user, user_id: t[:user].id),
diff --git a/spec/models/topic_spec.rb b/spec/models/topic_spec.rb
index f8f669e0852..32a8afdd718 100644
--- a/spec/models/topic_spec.rb
+++ b/spec/models/topic_spec.rb
@@ -193,12 +193,12 @@ describe Topic do
it "enqueues a job to notify users" do
topic.stubs(:add_moderator_post)
Jobs.expects(:enqueue).with(:notify_moved_posts, post_ids: [p1.id, p4.id], moved_by_id: user.id)
- topic.move_posts(user, "new topic name", [p1.id, p4.id])
+ topic.move_posts(user, "new testing topic name", [p1.id, p4.id])
end
it "adds a moderator post at the location of the first moved post" do
topic.expects(:add_moderator_post).with(user, instance_of(String), has_entries(post_number: 2))
- topic.move_posts(user, "new topic name", [p2.id, p4.id])
+ topic.move_posts(user, "new testing topic name", [p2.id, p4.id])
end
end
@@ -206,11 +206,11 @@ describe Topic do
context "errors" do
it "raises an error when one of the posts doesn't exist" do
- lambda { topic.move_posts(user, "new topic name", [1003]) }.should raise_error(Discourse::InvalidParameters)
+ lambda { topic.move_posts(user, "new testing topic name", [1003]) }.should raise_error(Discourse::InvalidParameters)
end
it "raises an error if no posts were moved" do
- lambda { topic.move_posts(user, "new topic name", []) }.should raise_error(Discourse::InvalidParameters)
+ lambda { topic.move_posts(user, "new testing topic name", []) }.should raise_error(Discourse::InvalidParameters)
end
end
@@ -221,7 +221,7 @@ describe Topic do
TopicUser.update_last_read(user, topic.id, p4.post_number, 0)
end
- let!(:new_topic) { topic.move_posts(user, "new topic name", [p2.id, p4.id]) }
+ let!(:new_topic) { topic.move_posts(user, "new testing topic name", [p2.id, p4.id]) }
it "updates the user's last_read_post_number" do