- Author
Garry Dolley
- Date
03-27-2014
web/
generated with:
rails new web -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb -T
Are you getting failing specs right out of the box? Here is what I get once I have bootstrapped the app, and run rake
FFF.*FFFFFF.F..F.....FFFFFF..
Pending:
Role add some examples to (or delete) /Users/heavysixer/Sites/clients/dandd/gogo/web/spec/models/role_spec.rb
# No reason given
# ./spec/models/role_spec.rb:4
Failures:
1) ContentController GET 'platinum' returns http success
Failure/Error: @user = FactoryGirl.create(:user)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/controllers/content_controller_spec.rb:6:in `block (2 levels) in <top (required)>'
2) ContentController GET 'gold' returns http success
Failure/Error: @user = FactoryGirl.create(:user)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/controllers/content_controller_spec.rb:6:in `block (2 levels) in <top (required)>'
3) ContentController GET 'silver' returns http success
Failure/Error: @user = FactoryGirl.create(:user)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/controllers/content_controller_spec.rb:6:in `block (2 levels) in <top (required)>'
4) UserMailer#expire_mail has the correct subject
Failure/Error: let(:user) { FactoryGirl.create(:user) }
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/mailers/user_mailer_spec.rb:5:in `block (3 levels) in <top (required)>'
# ./spec/mailers/user_mailer_spec.rb:6:in `block (3 levels) in <top (required)>'
# ./spec/mailers/user_mailer_spec.rb:17:in `block (3 levels) in <top (required)>'
5) UserMailer#expire_mail has the correct senders email
Failure/Error: let(:user) { FactoryGirl.create(:user) }
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/mailers/user_mailer_spec.rb:5:in `block (3 levels) in <top (required)>'
# ./spec/mailers/user_mailer_spec.rb:6:in `block (3 levels) in <top (required)>'
# ./spec/mailers/user_mailer_spec.rb:13:in `block (3 levels) in <top (required)>'
6) UserMailer#expire_mail has the correct user email
Failure/Error: let(:user) { FactoryGirl.create(:user) }
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/mailers/user_mailer_spec.rb:5:in `block (3 levels) in <top (required)>'
# ./spec/mailers/user_mailer_spec.rb:6:in `block (3 levels) in <top (required)>'
# ./spec/mailers/user_mailer_spec.rb:9:in `block (3 levels) in <top (required)>'
7) UsersController GET 'show' should be successful
Failure/Error: @user = FactoryGirl.create(:user)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/controllers/users_controller_spec.rb:6:in `block (2 levels) in <top (required)>'
8) UsersController GET 'show' should find the right user
Failure/Error: @user = FactoryGirl.create(:user)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/controllers/users_controller_spec.rb:6:in `block (2 levels) in <top (required)>'
9) User should create a new instance given a valid attribute
Failure/Error: User.create!(@attr)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/models/user_spec.rb:15:in `block (2 levels) in <top (required)>'
10) User should reject duplicate email addresses
Failure/Error: User.create!(@attr)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/models/user_spec.rb:40:in `block (2 levels) in <top (required)>'
11) User should reject email addresses identical up to case
Failure/Error: User.create!(@attr.merge(:email => upcased_email))
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/models/user_spec.rb:47:in `block (2 levels) in <top (required)>'
12) User#update_plan updates a users role
Failure/Error: @user = FactoryGirl.create(:user, email: "[email protected]")
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/models/user_spec.rb:118:in `block (3 levels) in <top (required)>'
13) User#update_plan wont remove original role from database
Failure/Error: @user = FactoryGirl.create(:user, email: "[email protected]")
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/models/user_spec.rb:118:in `block (3 levels) in <top (required)>'
14) User expire sends an email to user
Failure/Error: @user = User.create!(@attr)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/models/user_spec.rb:106:in `block (3 levels) in <top (required)>'
15) User password encryption should have an encrypted password attribute
Failure/Error: @user = User.create!(@attr)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/models/user_spec.rb:90:in `block (3 levels) in <top (required)>'
16) User password encryption should set the encrypted password attribute
Failure/Error: @user = User.create!(@attr)
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/models/user_spec.rb:90:in `block (3 levels) in <top (required)>'
17) User.update_stripe with a non-existing user creates a new user with a succesful stripe response
Failure/Error: @user.save!
TypeError:
can't convert nil into String
# ./app/models/user.rb:30:in `include?'
# ./app/models/user.rb:30:in `update_stripe'
# ./spec/models/user_spec.rb:151:in `block (4 levels) in <top (required)>'
Finished in 0.36516 seconds
29 examples, 17 failures, 1 pending
Failed examples:
rspec ./spec/controllers/content_controller_spec.rb:26 # ContentController GET 'platinum' returns http success
rspec ./spec/controllers/content_controller_spec.rb:19 # ContentController GET 'gold' returns http success
rspec ./spec/controllers/content_controller_spec.rb:12 # ContentController GET 'silver' returns http success
rspec ./spec/mailers/user_mailer_spec.rb:16 # UserMailer#expire_mail has the correct subject
rspec ./spec/mailers/user_mailer_spec.rb:12 # UserMailer#expire_mail has the correct senders email
rspec ./spec/mailers/user_mailer_spec.rb:8 # UserMailer#expire_mail has the correct user email
rspec ./spec/controllers/users_controller_spec.rb:12 # UsersController GET 'show' should be successful
rspec ./spec/controllers/users_controller_spec.rb:17 # UsersController GET 'show' should find the right user
rspec ./spec/models/user_spec.rb:14 # User should create a new instance given a valid attribute
rspec ./spec/models/user_spec.rb:39 # User should reject duplicate email addresses
rspec ./spec/models/user_spec.rb:45 # User should reject email addresses identical up to case
rspec ./spec/models/user_spec.rb:124 # User#update_plan updates a users role
rspec ./spec/models/user_spec.rb:130 # User#update_plan wont remove original role from database
rspec ./spec/models/user_spec.rb:109 # User expire sends an email to user
rspec ./spec/models/user_spec.rb:93 # User password encryption should have an encrypted password attribute
rspec ./spec/models/user_spec.rb:97 # User password encryption should set the encrypted password attribute
rspec ./spec/models/user_spec.rb:150 # User.update_stripe with a non-existing user creates a new user with a succesful stripe response
Randomized with seed 56398
/Users/heavysixer/.rvm/rubies/ruby-1.9.3-p484/bin/ruby -S rspec ./spec/controllers/content_controller_spec.rb ./spec/controllers/home_controller_spec.rb ./spec/controllers/users_controller_spec.rb ./spec/mailers/user_mailer_spec.rb ./spec/models/role_spec.rb ./spec/models/user_spec.rb ./spec/stripe/stripe_config_spec.rb failed
heavysixer:web heavysixer$ rake db:seed
ROLES
rake aborted!
TypeError: can't convert nil into String
/Users/heavysixer/Sites/clients/dandd/gogo/web/db/seeds.rb:11:in `<top (required)>'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.2.13/lib/rails/engine.rb:520:in `load_seed'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-3.2.13/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `eval'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
heavysixer:web heavysixer$ ROLES='admin' rake db:seed
ROLES
rake aborted!
NoMethodError: undefined method `each' for "admin":String
/Users/heavysixer/Sites/clients/dandd/gogo/web/db/seeds.rb:11:in `<top (required)>'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.2.13/lib/rails/engine.rb:520:in `load_seed'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-3.2.13/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `eval'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
heavysixer:web heavysixer$ ROLES=['admin'] rake db:seed
ROLES
role: admin
DEFAULT USERS
rake aborted!
TypeError: can't dup NilClass
/Users/heavysixer/Sites/clients/dandd/gogo/web/db/seeds.rb:16:in `dup'
/Users/heavysixer/Sites/clients/dandd/gogo/web/db/seeds.rb:16:in `<top (required)>'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.2.13/lib/rails/engine.rb:520:in `load_seed'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-3.2.13/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `eval'
/Users/heavysixer/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
heavysixer:web heavysixer$ ROLES=['admin'] ADMIN_NAME='admin' ADMIN_EMAIL='[email protected]' ADMIN_PASSWORD='1qaz2wsx' rake db:seed
ROLES
role: admin
DEFAULT USERS
user: admin
users: Silver User, Gold User, Platinum User
heavysixer:web heavysixer$ rake
/Users/heavysixer/.rvm/rubies/ruby-1.9.3-p484/bin/ruby -S rspec ./spec/controllers/content_controller_spec.rb ./spec/controllers/home_controller_spec.rb ./spec/controllers/users_controller_spec.rb ./spec/mailers/user_mailer_spec.rb ./spec/models/role_spec.rb ./spec/models/user_spec.rb ./spec/stripe/stripe_config_spec.rb
..*FFF.FF.F..FFFFF...FFF..FFF
Why is there a Gemfile in root and one in app?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.