Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added a #trigger example in the README.

  • Loading branch information...
commit 0665390c516e507c9871e4d20eaf95183fc08d93 1 parent ed5935f
@apotonick apotonick authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.mkd
View
4 README.mkd
@@ -35,6 +35,10 @@ describe CommentsWidget do
it 'renders properly' do
render_widget(:comments).should == "<h1>No Comment!</h1>"
end
+
+ it 'responds to :post events' do
+ trigger(:post, :comments, :text => "I like you!").should == ["Thanks!"]
+ end
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.