spec/hallon/user_spec.rb in hallon-0.3.0 vs spec/hallon/user_spec.rb in hallon-0.4.0

- old
+ new

@@ -26,19 +26,10 @@ it_should_behave_like "a loadable object" end end describe "an instance", :logged_in => true do - let(:user) do - user = Spotify.mock_user( - "burgestrand", "Burgestrand", "Kim Burgestrand", - "https://secure.gravatar.com/avatar/b67b73b5b1fd84119ec788b1c3df02ad", - :none, true - ) - Hallon::User.new(user) - end - - subject { user } + let(:user) { Hallon::User.new(mock_user) } describe "#to_link" do it "should return a Link for this user" do user.to_link.should eq "spotify:user:burgestrand" end