Sha256: f9571dcc8151cc3453b0570dc9c401ac3d6cf0929e8c19e9623dab25b5dcda82

Contents?: true

Size: 448 Bytes

Versions: 15

Compression:

Stored size: 448 Bytes

Contents

require 'test_helper'

module Shipit
  module Api
    class CommitsControllerTest < ActionController::TestCase
      setup do
        @stack = shipit_stacks(:shipit)
        authenticate!
      end

      test "#index returns a list of commits" do
        commit = @stack.commits.reachable.last

        get :index, params: {stack_id: @stack.to_param}
        assert_response :ok
        assert_json '0.sha', commit.sha
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
shipit-engine-0.26.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.25.1 test/controllers/api/commits_controller_test.rb
shipit-engine-0.25.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.24.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.23.1 test/controllers/api/commits_controller_test.rb
shipit-engine-0.23.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.22.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.21.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.20.1 test/controllers/api/commits_controller_test.rb
shipit-engine-0.20.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.19.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.18.1 test/controllers/api/commits_controller_test.rb
shipit-engine-0.18.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.17.0 test/controllers/api/commits_controller_test.rb
shipit-engine-0.16.0 test/controllers/api/commits_controller_test.rb