test/controllers/api/commits_controller_test.rb in shipit-engine-0.15.0 vs test/controllers/api/commits_controller_test.rb in shipit-engine-0.16.0
- old
+ new
@@ -7,10 +7,10 @@
@stack = shipit_stacks(:shipit)
authenticate!
end
test "#index returns a list of commits" do
- commit = @stack.commits.last
+ commit = @stack.commits.reachable.last
get :index, params: {stack_id: @stack.to_param}
assert_response :ok
assert_json '0.sha', commit.sha
end