1 # == Schema Information
5 # id :integer not null, primary key
9 # project_id :integer not null
10 # created_at :datetime not null
11 # updated_at :datetime not null
12 # active :boolean default(FALSE), not null
13 # project_url :string(255)
14 # subdomain :string(255)
22 describe "Associations" do
23 it { should belong_to :project }
24 it { should have_one :service_hook }
27 describe "Mass assignment" do
28 it { should_not allow_mass_assignment_of(:project_id) }
31 describe "Test Button" do
33 @service = Service.new
36 describe "Testable" do
37 let (:project) { create :project }
43 @testable = @service.can_test?
47 it { @testable.should == false }
51 describe "With commits" do
52 let (:project) { create :project }
58 @testable = @service.can_test?
62 it { @testable.should == true }