Fixed random failing test
This commit is contained in:
parent
e230551940
commit
4fcd89fe7f
2 changed files with 1 additions and 8 deletions
|
@ -83,10 +83,3 @@ Feature: Comments on commit diffs
|
||||||
And I submit the diff comment
|
And I submit the diff comment
|
||||||
Then I should not see the diff comment form
|
Then I should not see the diff comment form
|
||||||
And I should see a discussion reply button
|
And I should see a discussion reply button
|
||||||
|
|
||||||
|
|
||||||
#@wip @javascript
|
|
||||||
#Scenario: I can delete a discussion comment
|
|
||||||
# Given I leave a diff comment like "Typo, please fix"
|
|
||||||
# And I delete a diff comment
|
|
||||||
# Then I should not see a diff comment saying "Typo, please fix"
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ describe Project do
|
||||||
describe 'last_activity_date' do
|
describe 'last_activity_date' do
|
||||||
it 'returns the creation date of the project\'s last event if present' do
|
it 'returns the creation date of the project\'s last event if present' do
|
||||||
last_activity_event = create(:event, project: project)
|
last_activity_event = create(:event, project: project)
|
||||||
project.last_activity_date.to_s(:db).should == last_event.created_at.to_s(:db)
|
project.last_activity_at.to_i.should == last_event.created_at.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns the project\'s last update date if it has no events' do
|
it 'returns the project\'s last update date if it has no events' do
|
||||||
|
|
Loading…
Reference in a new issue