blob: a082b813553bfd6248947674e3bb4bd30aeb9a6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'spec_helper'
describe "Admin Builds" do
let(:project) { FactoryGirl.create :project }
let(:commit) { FactoryGirl.create :commit, project: project }
let(:build) { FactoryGirl.create :build, commit: commit }
before do
skip_admin_auth
login_as :user
end
describe "GET /admin/builds" do
before do
build
visit admin_builds_path
end
it { page.should have_content "All builds" }
it { page.should have_content build.short_sha }
end
end
|