Sha256: d02f73744e1ea9a2363a5460e947f35ce9ef2c31b28b7eb67ca897ddf870e182

Contents?: true

Size: 751 Bytes

Versions: 25

Compression:

Stored size: 751 Bytes

Contents

# frozen_string_literal: true
require_relative 'test_helper'

ENV['RACK_ENV'] = 'test'
require 'dynflow/web'

require 'rack/test'

module Dynflow
  describe 'web console' do

    include Rack::Test::Methods
    let(:world) { WorldFactory.create_world }

    let :execution_plan_id do
      world.trigger(Support::CodeWorkflowExample::FastCommit, 'sha' => 'abc123').
          tap { |o| o.finished.wait }.
          id
    end

    let :app do
      world = self.world
      Dynflow::Web.setup do
        set :world, world
      end
    end

    it 'lists all execution plans' do
      get '/'
      assert last_response.ok?
    end

    it 'show an execution plan' do
      get "/#{execution_plan_id}"
      assert last_response.ok?
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
dynflow-1.8.2 test/web_console_test.rb
dynflow-1.8.1 test/web_console_test.rb
dynflow-1.8.0 test/web_console_test.rb
dynflow-1.7.0 test/web_console_test.rb
dynflow-1.6.11 test/web_console_test.rb
dynflow-1.6.10 test/web_console_test.rb
dynflow-1.6.8 test/web_console_test.rb
dynflow-1.6.7 test/web_console_test.rb
dynflow-1.6.6 test/web_console_test.rb
dynflow-1.6.5 test/web_console_test.rb
dynflow-1.6.4 test/web_console_test.rb
dynflow-1.6.3 test/web_console_test.rb
dynflow-1.6.2 test/web_console_test.rb
dynflow-1.6.1 test/web_console_test.rb
dynflow-1.4.9 test/web_console_test.rb
dynflow-1.4.8 test/web_console_test.rb
dynflow-1.5.0 test/web_console_test.rb
dynflow-1.4.7 test/web_console_test.rb
dynflow-1.4.6 test/web_console_test.rb
dynflow-1.4.5 test/web_console_test.rb