Merge branch 'master' into fixes/api
This commit is contained in:
commit
c8b92a4be2
22 changed files with 201 additions and 233 deletions
|
@ -123,7 +123,7 @@ FactoryGirl.define do
|
|||
factory :event do
|
||||
factory :closed_issue_event do
|
||||
project
|
||||
action { Event::Closed }
|
||||
action { Event::CLOSED }
|
||||
target factory: :closed_issue
|
||||
author factory: :user
|
||||
end
|
||||
|
|
|
@ -52,7 +52,7 @@ describe Event do
|
|||
|
||||
@event = Event.create(
|
||||
project: project,
|
||||
action: Event::Pushed,
|
||||
action: Event::PUSHED,
|
||||
data: data,
|
||||
author_id: @user.id
|
||||
)
|
||||
|
|
|
@ -19,7 +19,7 @@ describe Project, "Hooks" do
|
|||
|
||||
event.should_not be_nil
|
||||
event.project.should == project
|
||||
event.action.should == Event::Pushed
|
||||
event.action.should == Event::PUSHED
|
||||
event.data.should == data
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,7 +17,7 @@ describe ActivityObserver do
|
|||
end
|
||||
|
||||
it_should_be_valid_event
|
||||
it { @event.action.should == Event::Created }
|
||||
it { @event.action.should == Event::CREATED }
|
||||
it { @event.target.should == @merge_request }
|
||||
end
|
||||
|
||||
|
@ -30,7 +30,7 @@ describe ActivityObserver do
|
|||
end
|
||||
|
||||
it_should_be_valid_event
|
||||
it { @event.action.should == Event::Created }
|
||||
it { @event.action.should == Event::CREATED }
|
||||
it { @event.target.should == @issue }
|
||||
end
|
||||
|
||||
|
@ -44,7 +44,7 @@ describe ActivityObserver do
|
|||
end
|
||||
|
||||
it_should_be_valid_event
|
||||
it { @event.action.should == Event::Commented }
|
||||
it { @event.action.should == Event::COMMENTED }
|
||||
it { @event.target.should == @note }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue