mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Fix newly found issues
This commit is contained in:
parent
0739fad670
commit
a53d44617d
5 changed files with 6 additions and 8 deletions
|
@ -120,7 +120,7 @@ module Ameba
|
|||
it "returns list of sources" do
|
||||
config.sources.size.should be > 0
|
||||
config.sources.first.should be_a Source
|
||||
config.sources.any? { |s| s.fullpath == __FILE__ }.should be_true
|
||||
config.sources.any?(&.fullpath.==(__FILE__)).should be_true
|
||||
end
|
||||
|
||||
it "returns a list of sources mathing globs" do
|
||||
|
@ -130,7 +130,7 @@ module Ameba
|
|||
|
||||
it "returns a lisf of sources excluding 'Excluded'" do
|
||||
config.excluded = %w(**/config_spec.cr)
|
||||
config.sources.any? { |s| s.fullpath == __FILE__ }.should be_false
|
||||
config.sources.any?(&.fullpath.==(__FILE__)).should be_false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -4,9 +4,7 @@ module Ameba
|
|||
describe Severity do
|
||||
describe "#symbol" do
|
||||
it "returns the symbol for each severity in the enum" do
|
||||
Severity.values.each do |severity|
|
||||
severity.symbol.should_not be_nil
|
||||
end
|
||||
Severity.values.each(&.symbol.should_not(be_nil))
|
||||
end
|
||||
|
||||
it "returns symbol for Error" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue