Sha256: f01812a66a0f8849e6dcd69f8a8e7246d18de278b1a8e542b86bc09466cb57f7

Contents?: true

Size: 721 Bytes

Versions: 57

Compression:

Stored size: 721 Bytes

Contents

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

57 entries across 57 versions & 1 rubygems

Version Path
dynflow-1.3.0 test/web_console_test.rb
dynflow-1.2.3 test/web_console_test.rb
dynflow-1.2.2 test/web_console_test.rb
dynflow-1.2.1 test/web_console_test.rb
dynflow-1.2.0 test/web_console_test.rb
dynflow-1.2.0.pre1 test/web_console_test.rb
dynflow-1.1.6 test/web_console_test.rb
dynflow-1.1.5 test/web_console_test.rb
dynflow-1.1.4 test/web_console_test.rb
dynflow-1.1.3 test/web_console_test.rb
dynflow-1.1.2 test/web_console_test.rb
dynflow-1.1.1 test/web_console_test.rb
dynflow-1.1.0 test/web_console_test.rb
dynflow-1.0.5 test/web_console_test.rb
dynflow-1.0.4 test/web_console_test.rb
dynflow-1.0.3 test/web_console_test.rb
dynflow-1.0.2 test/web_console_test.rb
dynflow-1.0.1 test/web_console_test.rb
dynflow-1.0.0 test/web_console_test.rb
dynflow-0.8.37 test/web_console_test.rb