Permalink
Browse files

Add specs for Twitter::Tweet#filter_level

  • Loading branch information...
1 parent ab6d2f2 commit b3d9007459fd835e0ec0a6a8203bd7976291db91 @sferik committed Mar 14, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/twitter/tweet_spec.rb
View
@@ -69,6 +69,18 @@
end
end
+ describe "#filter_level" do
+ it "returns the filter level when filter_level is set" do
+ tweet = Twitter::Tweet.new(:id => 28669546014, :filter_level => 'high')
+ expect(tweet.filter_level).to be_a String
+ expect(tweet.filter_level).to eq "high"
+ end
+ it "returns \"none\" when not set" do
+ tweet = Twitter::Tweet.new(:id => 28669546014)
+ expect(tweet.filter_level).to eq "none"
+ end
+ end
+
describe "#full_text" do
it "returns the text of a Tweet" do
tweet = Twitter::Tweet.new(:id => 28669546014, :text => 'BOOSH')

0 comments on commit b3d9007

Please sign in to comment.