Sha256: 4ed987cb6a4fcdbcc51043a651a5c6394fdd42d7b753d7439935a11fea863cfb

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

require "spec_helper"

describe "Browsing a Briefcase REST Interface", :type => :request do
  it "responds to requests" do
    get "/"
    expect(last_response.status).to eq(200)
  end

  it "shows me all of the documents for the requested type" do
    get "/browse/epics"
    expect(json).to be_a(Array)
    expect(json.first).to be_a(Hash)
    expect(last_response.status).to eq(200)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brief-1.4.4 spec/acceptance/browsing_spec.rb
brief-1.4.2 spec/acceptance/browsing_spec.rb
brief-1.4.1 spec/acceptance/browsing_spec.rb