diff options
author | rhenium <re4k@re4k.info> | 2013-05-11 16:57:38 +0900 |
---|---|---|
committer | rhenium <re4k@re4k.info> | 2013-05-11 16:57:38 +0900 |
commit | 286feaace7621c9ca7cc519b84dbf6e375974a01 (patch) | |
tree | 29d7d0c60a6258f43821290131e5e4eac9daf0c1 /spec | |
parent | 30f8dfb83f1cf1916831a732ad6e18c874812d97 (diff) | |
download | aclog-286feaace7621c9ca7cc519b84dbf6e375974a01.tar.gz |
add spec: Tweet.of
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/tweet_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/models/tweet_spec.rb b/spec/models/tweet_spec.rb index a6afb01..6d4f35e 100644 --- a/spec/models/tweet_spec.rb +++ b/spec/models/tweet_spec.rb @@ -101,6 +101,11 @@ describe Tweet do } end + describe "of" do + subject { Tweet.of(@user_1) } + its(:to_sql) { should eq @user_1.tweets.to_sql } + end + describe "favorited_by" do subject { Tweet.favorited_by(@user_1) } its(:count) { should be 2 } @@ -124,5 +129,9 @@ describe Tweet do describe "original" do # TODO end + + describe "not_protected" do + # TODO + end end end |