Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions spec/rails_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

it 'compress the output if Rails is configured to compress them too' do
result = fixture(:compressed).last
result.rstrip! # because of modern text editors automatically adding new lines at the end of file

app = create_app(:compress => true)
app.assets['compressed'].to_s.should == result
Expand Down
2 changes: 2 additions & 0 deletions spec/stylus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@

it 'compress the file when the "compress" flag is given' do
input, output = fixture(:compressed)
output.rstrip! # because of modern text editors automatically adding new lines at the end of file
expect(Stylus.compile(input, compress: true)).to eq(output)
end

it 'handles the compress flag globally' do
Stylus.compress = true
input, output = fixture(:compressed)
output.rstrip! # because of modern text editors automatically adding new lines at the end of file
expect(Stylus.compile(input)).to eq(output)
end

Expand Down
1 change: 1 addition & 0 deletions spec/tilt/stylus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
it 'compiles with the compress option' do
input, output = fixture(:compressed)
template = Tilt::StylusTemplate.new(compress: true) { |_| input }
output.rstrip! # because of modern text editors automatically adding new lines at the end of file
expect(template.render).to eq(output)
end
end