Sha256: 5e1426200e8c87cca96e5cfef1b08894440fc4631073e555ab317d93045b536d
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 Bytes
Contents
require 'spec_helper' describe User do before :each do setup_sites User.clear @user = FactoryGirl.create :user end describe 'Normal' do it 'creates newsitem' do u = @user newsitem = Newsitem.new :photo => Photo.new, :descr => 'simple descr' u.create_newsitem :photo => newsitem u.save.should eql true end end it '#generate_auth_token' do u = User.new result = u.generate_auth_token result.should_not eql nil result.class.name.should eql 'String' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ish_lib-0.0.8 | spec/models/user_spec.rb |
ish_lib-0.0.3 | spec/models/user_spec.rb |