File: shared_example_for_test_servers.rb

package info (click to toggle)
ruby-excon 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,240 kB
  • sloc: ruby: 7,970; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
shared_examples_for "a excon test server" do |plugin, file|

    include_context("test server", plugin, file)

    it "returns an instance" do
      expect(@server).to be_instance_of Excon::Test::Server
    end

    it 'starts the server' do
      expect(@server.start).to be true
    end

    it 'stops the server' do
      expect(@server.stop).to be true
    end
end