Skip to content

Commit

Permalink
Add specs for User#website?
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jul 29, 2013
1 parent 0d7a472 commit b4e3e21
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/twitter/user_spec.rb
Expand Up @@ -305,4 +305,15 @@
end
end

describe "#website?" do
it "returns true when the url is set" do
user = Twitter::User.new(:id => 7505382, :url => "https://github.com/sferik")
expect(user.website?).to be_true
end
it "returns false when the url is not set" do
user = Twitter::User.new(:id => 7505382)
expect(user.website?).to be_false
end
end

end

0 comments on commit b4e3e21

Please sign in to comment.