* fixing broken test in rspec
This commit is contained in:
parent
61a4a10334
commit
989544bb35
|
|
@ -1,9 +1,15 @@
|
|||
FactoryGirl.define do
|
||||
factory :user, :class => JamRuby::User do
|
||||
sequence(:email) { |n| "person_#{n}@example.com"}
|
||||
sequence(:first_name) { |n| "Person" }
|
||||
sequence(:last_name) { |n| "#{n}" }
|
||||
password "foobar"
|
||||
password_confirmation "foobar"
|
||||
|
||||
email_confirmed true
|
||||
musician true
|
||||
city "Apex"
|
||||
state "NC"
|
||||
country "USA"
|
||||
|
||||
factory :admin do
|
||||
admin true
|
||||
|
|
@ -12,7 +18,7 @@ FactoryGirl.define do
|
|||
|
||||
factory :music_session, :class => JamRuby::MusicSession do
|
||||
sequence(:description) { |n| "Jam Session #{n}" }
|
||||
fan_chat true
|
||||
fan_chat true
|
||||
fan_access true
|
||||
approval_required false
|
||||
musician_access true
|
||||
|
|
@ -20,5 +26,6 @@ FactoryGirl.define do
|
|||
|
||||
factory :connection, :class => JamRuby::Connection do
|
||||
ip_address "1.1.1.1"
|
||||
as_musician true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -188,10 +188,9 @@ describe Router do
|
|||
|
||||
it "should allow login of valid user", :mq => true do
|
||||
#em do
|
||||
@user = User.new(:name => "Example User", :email => "user@example.com",
|
||||
@user = FactoryGirl.create(:user,
|
||||
:password => "foobar", :password_confirmation => "foobar")
|
||||
@user.save
|
||||
|
||||
|
||||
client1 = login(@router, @user, "foobar", "1")
|
||||
done
|
||||
#end
|
||||
|
|
|
|||
Loading…
Reference in New Issue