Uncommented test observing comment event
This commit is contained in:
parent
0ff468160e
commit
b79e00881e
3 changed files with 18 additions and 12 deletions
|
@ -34,15 +34,17 @@ describe ActivityObserver do
|
|||
it { @event.target.should == @issue }
|
||||
end
|
||||
|
||||
#describe "Issue commented" do
|
||||
#before do
|
||||
#@issue = create(:issue, project: project)
|
||||
#@note = create(:note, noteable: @issue, project: project)
|
||||
#@event = Event.last
|
||||
#end
|
||||
describe "Issue commented" do
|
||||
before do
|
||||
Note.observers.enable :activity_observer do
|
||||
@issue = create(:issue, project: project)
|
||||
@note = create(:note, noteable: @issue, project: project, author: @issue.author)
|
||||
@event = Event.last
|
||||
end
|
||||
end
|
||||
|
||||
#it_should_be_valid_event
|
||||
#it { @event.action.should == Event::Commented }
|
||||
#it { @event.target.should == @note }
|
||||
#end
|
||||
it_should_be_valid_event
|
||||
it { @event.action.should == Event::Commented }
|
||||
it { @event.target.should == @note }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue