mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
DEV: Make the first argument to the top-level describe a constant in specs
This commit is contained in:

committed by
Loïc Guitaut

parent
8b8cbe7905
commit
00b3f0e2c4
@ -86,22 +86,22 @@ RSpec.describe Onebox::Engine do
|
||||
expect(result).to match(/https/)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
RSpec.describe ".onebox_name" do
|
||||
module ScopeForTemplateName
|
||||
class TemplateNameOnebox
|
||||
include Onebox::Engine
|
||||
describe ".onebox_name" do
|
||||
module ScopeForTemplateName
|
||||
class TemplateNameOnebox
|
||||
include Onebox::Engine
|
||||
end
|
||||
end
|
||||
|
||||
let(:onebox_name) { ScopeForTemplateName::TemplateNameOnebox.onebox_name }
|
||||
|
||||
it "should not include the scope" do
|
||||
expect(onebox_name).not_to include("ScopeForTemplateName", "scopefortemplatename")
|
||||
end
|
||||
|
||||
it "should not include the word Onebox" do
|
||||
expect(onebox_name).not_to include("onebox", "Onebox")
|
||||
end
|
||||
end
|
||||
|
||||
let(:onebox_name) { ScopeForTemplateName::TemplateNameOnebox.onebox_name }
|
||||
|
||||
it "should not include the scope" do
|
||||
expect(onebox_name).not_to include("ScopeForTemplateName", "scopefortemplatename")
|
||||
end
|
||||
|
||||
it "should not include the word Onebox" do
|
||||
expect(onebox_name).not_to include("onebox", "Onebox")
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user