Sha256: 3ba65ebaee63576ac9dbf115109a843f34c3fe7dd460844f9afbc3bab4682a3d

Contents?: true

Size: 663 Bytes

Versions: 3

Compression:

Stored size: 663 Bytes

Contents

require "spec_helper"

describe "Browsing Assets", :type => :request do
  it "should display info about an individual asset" do
    get "/stylish/meta/app/assets/javascripts/test.coffee"
    expect(json["digest"]).not_to be_empty
  end

  it "should display content from an individual asset" do
    get "/stylish/content/app/assets/javascripts/test.coffee"
    expect(response.body).to match(/require_self/)
  end

  it "should list the assets under a path" do
    get "/stylish/list/app/assets/javascripts"
    expect(json["path"]).to eq("app/assets/javascripts")
    expect(json["is_folder"]).to be_truthy
    expect(json["children"]).not_to be_empty
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stylish-0.3.1 spec/acceptance/listing_assets_spec.rb
stylish-0.3.0 spec/acceptance/listing_assets_spec.rb
stylish-0.0.2 spec/acceptance/listing_assets_spec.rb