Sha256: f61e0a8cd4a92653869ac479a6b3a5cf611682e8580dbdf22e5b055a2fba148a

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

require 'pokeplot/web'

describe Pokeplot::Web do

  describe ".config" do
    it "should set the database, bind, and port" do
      expect(Pokeplot::Database).to receive(:mongo)
      expect(Sinatra::Base).to receive(:set).twice
      described_class.config
    end
  end

  it "should be OK" do
    get '/'
    expect(last_response).to be_ok
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pokeplot-0.2.1beta spec/web_spec.rb
pokeplot-0.2.0beta spec/web_spec.rb