mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00: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
|
||||
|
||||
describe ".precompile css" do
|
||||
before do
|
||||
class << STDERR
|
||||
alias_method :orig_write, :write
|
||||
def write(x)
|
||||
end
|
||||
end
|
||||
end
|
||||
before { STDERR.stubs(:write) }
|
||||
|
||||
after do
|
||||
class << STDERR
|
||||
def write(x)
|
||||
orig_write(x)
|
||||
end
|
||||
end
|
||||
STDERR.unstub(:write)
|
||||
FileUtils.rm_rf("tmp/stylesheet-cache")
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user