Add frozen string literal comment to files.

This commit is contained in:
Guo Xiang Tan 2019-05-13 11:04:27 +08:00
parent 44e832813c
commit 75046f1d92
8 changed files with 65 additions and 50 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
group :development do group :development do
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git' gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module TopicAnswerMixin module TopicAnswerMixin
def self.included(klass) def self.included(klass)
klass.attributes :has_accepted_answer, :can_have_answer klass.attributes :has_accepted_answer, :can_have_answer

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'translations_manager' require 'translations_manager'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# name: discourse-solved # name: discourse-solved
# about: Add a solved button to answers on Discourse # about: Add a solved button to answers on Discourse
# version: 0.1 # version: 0.1

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe "Managing Posts solved status" do RSpec.describe "Managing Posts solved status" do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
require_dependency 'site' require_dependency 'site'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe TopicsController do RSpec.describe TopicsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe TopicAnswerMixin do describe TopicAnswerMixin do