Skip to content

Commit

Permalink
Specify when user is without twitterf account
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Aug 23, 2013
1 parent c80a708 commit d565431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/user_spec.rb
Expand Up @@ -329,7 +329,7 @@ def set_password(newpass)

describe "User's Twitter configuration" do
it "A user without twitter_oauth_token or twitter_oauth_token_secret should not have Twitter configured" do
user = FactoryGirl.build(:user)
user = FactoryGirl.build(:user, twitter_oauth_token:nil, twitter_oauth_token_secret:nil)
user.has_twitter_configured?.should == false
end

Expand Down

0 comments on commit d565431

Please sign in to comment.