Skip to content
Snippets Groups Projects
Commit cb9d56e0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Build feature specs

parent 8bd3c2ac
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3,5 +3,6 @@
FactoryGirl.define do
factory :build do
ref 'master'
sha '97de212e80737a608d939f648d959671fb0a0142'
end
end
require 'spec_helper'
 
describe "Builds" do
before do
login_as :user
@project = FactoryGirl.create :project
@build = FactoryGirl.create :build, project: @project
end
describe "GET /:project/builds" do
before do
visit project_build_path(@project, @build)
end
 
it { page.should have_content @build.sha[0..7] }
it { page.should have_content @build.git_commit_message }
it { page.should have_content @build.git_author_name }
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment