mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Stub stderr instead of manual change (#21511)
Fixes "stack too deep" issues in CI
This commit is contained in:
parent
e905de66ff
commit
f9db5d5ea6
@ -878,20 +878,10 @@ RSpec.describe Stylesheet::Manager do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe ".precompile css" do
|
describe ".precompile css" do
|
||||||
before do
|
before { STDERR.stubs(:write) }
|
||||||
class << STDERR
|
|
||||||
alias_method :orig_write, :write
|
|
||||||
def write(x)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
after do
|
after do
|
||||||
class << STDERR
|
STDERR.unstub(:write)
|
||||||
def write(x)
|
|
||||||
orig_write(x)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
FileUtils.rm_rf("tmp/stylesheet-cache")
|
FileUtils.rm_rf("tmp/stylesheet-cache")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user