Sha256: a1ac8f3797c3b0f404f640e326096afba85bc37e8073af790c7670f70482efd5
Contents?: true
Size: 664 Bytes
Versions: 2
Compression:
Stored size: 664 Bytes
Contents
require 'spec_helper' describe 'Schnitzelpress::Actions::Assets' do include Rack::Test::Methods def app Schnitzelpress::App end describe '/assets/schnitzelpress.*.js' do before do Schnitzelpress::JavascriptPacker.should_receive(:pack_javascripts!).and_return('{123}') get '/assets/schnitzelpress.123.js' end subject { last_response } it { should be_ok } its(:body) { should == '{123}' } end describe '/assets/schnitzelpress.*.css' do before { get '/assets/schnitzelpress.123.css' } subject { last_response } it { should be_ok } its(:content_type) { should == 'text/css;charset=utf-8' } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schnitzelpress-0.2.1 | spec/assets_spec.rb |
schnitzelpress-0.2.0 | spec/assets_spec.rb |