|
18 | 18 | # gitlab_id :integer |
19 | 19 | # allow_git_fetch :boolean default(TRUE), not null |
20 | 20 | # email_recipients :string(255) |
21 | | -# email_add_committer :boolean default(TRUE), not null |
22 | | -# email_only_breaking_build :boolean default(TRUE), not null |
| 21 | +# email_add_committer :boolean default(TRUE), not null |
| 22 | +# email_only_breaking_build :boolean default(TRUE), not null |
23 | 23 | # |
24 | 24 |
|
25 | 25 | require 'spec_helper' |
|
67 | 67 | it { project.status_image.should == 'running.png' } |
68 | 68 | end |
69 | 69 | end |
70 | | - |
71 | | - describe '#email_notification?' do |
72 | | - it { |
73 | | - project = FactoryGirl.create :project, email_add_committer: true |
74 | | - project.stub(:broken_or_success?).and_return(true) |
75 | | - project.email_notification?.should == true |
76 | | - } |
77 | 70 |
|
78 | | - it { |
| 71 | + describe '#email_notification?' do |
| 72 | + it do |
79 | 73 | project = FactoryGirl.create :project, email_add_committer: true |
80 | | - project.stub(:broken_or_success?).and_return(false) |
81 | | - project.email_notification?.should == false |
82 | | - } |
83 | | - |
| 74 | + project.email_notification?.should == true |
| 75 | + end |
84 | 76 |
|
85 | | - it { |
86 | | - project = FactoryGirl.create :project, email_add_committer: false, email_recipients: 'test tesft' |
87 | | - project.stub(:broken_or_success?).and_return(true) |
88 | | - project.email_notification?.should == true |
89 | | - } |
| 77 | + it do |
| 78 | + project = FactoryGirl.create :project, email_add_committer: false, email_recipients: 'test tesft' |
| 79 | + project.email_notification?.should == true |
| 80 | + end |
90 | 81 |
|
91 | | - it { |
92 | | - project = FactoryGirl.create :project, email_add_committer: false, email_recipients: '' |
93 | | - project.stub(:broken_or_success?).and_return(true) |
94 | | - project.email_notification?.should == false |
95 | | - } |
| 82 | + it do |
| 83 | + project = FactoryGirl.create :project, email_add_committer: false, email_recipients: '' |
| 84 | + project.email_notification?.should == false |
| 85 | + end |
96 | 86 | end |
97 | | - |
| 87 | + |
98 | 88 | describe '#broken_or_success?' do |
99 | 89 |
|
100 | 90 | it { |
|
124 | 114 | project.stub(:success?).and_return(false) |
125 | 115 | project.broken_or_success?.should == false |
126 | 116 | } |
127 | | - end |
| 117 | + end |
128 | 118 | end |
129 | 119 |
|
130 | 120 | # == Schema Information |
|
147 | 137 | # gitlab_id :integer |
148 | 138 | # allow_git_fetch :boolean default(TRUE), not null |
149 | 139 | # email_recipients :string(255) |
150 | | -# email_add_committer :boolean default(TRUE), not null |
151 | | -# email_only_breaking_build :boolean default(TRUE), not null |
| 140 | +# email_add_committer :boolean default(TRUE), not null |
| 141 | +# email_only_breaking_build :boolean default(TRUE), not null |
152 | 142 | # |
153 | 143 |
|
0 commit comments