Sha256: 4bcb23a0691e59c4068187363ad8457515bf994234178af069192acdfa03766b
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 KB
Contents
# encoding: utf-8 require 'spec_helper' require 'sinatra/classy_assets' class ExtensionApp < Sinatra::Base register Sinatra::ClassyAssets set :root, File.expand_path('../../support', __FILE__) set :public_folder, File.join(settings.root, 'public') end describe Rack::ClassyAssets do include Rack::Test::Methods def app ExtensionApp.new end describe "stylesheets" do describe "css" do it "will respond sucessfully" do get '/assets/stylesheet.css' last_response.status.must_equal 200 end end describe "sass" do it "will respond sucessfully" do get '/assets/application.css' last_response.status.must_equal 200 end end end describe "javascripts" do describe "js" do it "will respond sucessfully" do get '/assets/javascript.js' last_response.status.must_equal 200 end end describe "coffeescript" do it "will respond sucessfully" do get '/assets/application.js' last_response.status.must_equal 200 end end end describe "images" do describe "gif" do it "will respond sucessfully" do get '/assets/image.gif' last_response.status.must_equal 200 end end describe "jpg" do it "will respond sucessfully" do get '/assets/image.jpg' last_response.status.must_equal 200 end end describe "png" do it "will respond sucessfully" do get '/assets/image.png' last_response.status.must_equal 200 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
classy_assets-0.0.2 | spec/sinatra/classy_assets_spec.rb |
classy_assets-0.0.1 | spec/sinatra/classy_assets_spec.rb |