diff --git a/spec/twitter/user_spec.rb b/spec/twitter/user_spec.rb index b5b0917a0..0bc77f82f 100644 --- a/spec/twitter/user_spec.rb +++ b/spec/twitter/user_spec.rb @@ -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