i recreated a test directory, and placed all the necessary files in the
directory.

replaced gem 'minitest' with
               gem 'minitest-rails', '~> 0.1.0.alpha'
I replaced coz I was getting in error in the terminal which reads
               Could not find generator mini_test:install
therefore, again, I replaced and bundled. it then proceeded to create
test/minitest_helper.rb

anyway.

i run the first test which is

require "minitest/autorun"
require "minitest/rails"

class ExercisesTest < ActionController::TestCase

   test "should get show" do
     get :show
     assert_response :success
   end

end

and the output from the terminal reads

Errors running test:units! #<NoMethodError: undefined method `[]' for
nil:NilClass>

I need some hand holding setting up the directory now. what to test, and
how to write tests. I'm not looking just to get tests to pass ( I am)
but I'm wanting to know what the fuck I'm doing, really. None of this
half assed shit, ya know?

be well.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2026db7ff5ae103f19cba4750a484dd8%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Bala Paranj at Jan 22, 2015 at 6:48 am
    If you don't know what you are doing, then learn the basics. Here is a free
    coupon for TDD in Ruby course for
    beginners: https://www.udemy.com/learn-test-driven-development-in-ruby/?couponCode=railsfree

    On Wednesday, January 21, 2015 at 4:21:06 PM UTC-8, Ruby-Forum.com User
    wrote:
    i recreated a test directory, and placed all the necessary files in the
    directory.

    replaced gem 'minitest' with
    gem 'minitest-rails', '~> 0.1.0.alpha'
    I replaced coz I was getting in error in the terminal which reads
    Could not find generator mini_test:install
    therefore, again, I replaced and bundled. it then proceeded to create
    test/minitest_helper.rb

    anyway.

    i run the first test which is

    require "minitest/autorun"
    require "minitest/rails"

    class ExercisesTest < ActionController::TestCase

    test "should get show" do
    get :show
    assert_response :success
    end

    end

    and the output from the terminal reads

    Errors running test:units! #<NoMethodError: undefined method `[]' for
    nil:NilClass>

    I need some hand holding setting up the directory now. what to test, and
    how to write tests. I'm not looking just to get tests to pass ( I am)
    but I'm wanting to know what the fuck I'm doing, really. None of this
    half assed shit, ya know?

    be well.

    --
    Posted via http://www.ruby-forum.com/.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    To post to this group, send email to [email protected].
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dd36482b-6405-4618-b0eb-231ce8fdb5b1%40googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Colin Law at Jan 22, 2015 at 9:16 am

    On 22 January 2015 at 00:20, Justin Cheeze wrote:
    ...
    I need some hand holding setting up the directory now. what to test, and
    how to write tests. I'm not looking just to get tests to pass ( I am)
    but I'm wanting to know what the fuck I'm doing, really. None of this
    half assed shit, ya know?
    I suggest working right through a good tutorial such as
    railstutorial.org (which is free to use online). That will show you
    the basics of rails including tests.

    Colin

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    To post to this group, send email to [email protected].
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvTstrvao9QXzk5JhaVcP2kH2uPFY38xRR3Gin4voRjzg%40mail.gmail.com.
    For more options, visit https://groups.google.com/d/optout.
  • Justin Cheeze at Jan 22, 2015 at 12:33 pm
    I've been working on that tutorial but still confused. thanks for
    reaching out.

    --
    Posted via http://www.ruby-forum.com/.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    To post to this group, send email to [email protected].
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/16718448280bc6c385df6a44467ed8a7%40ruby-forum.com.
    For more options, visit https://groups.google.com/d/optout.
  • Colin Law at Jan 22, 2015 at 4:11 pm

    On 22 January 2015 at 12:33, Justin Cheeze wrote:
    I've been working on that tutorial but still confused. thanks for
    reaching out.
    Where on the tutorial are you confused?

    Colin

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    To post to this group, send email to [email protected].
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtMRGgyTo_NvPrVz1Pm2wB-2Wa5xyteuZX5F-K%2Bv31grg%40mail.gmail.com.
    For more options, visit https://groups.google.com/d/optout.
  • Justin Cheeze at Jan 22, 2015 at 4:16 pm
    control flow. learning how to think. like, obviously I know exactly what
    this test is doing

    test "should get show" do
        get :show
        assert_response :success
    end

    however, when doing other testing on another application to help hone my
    craft, I have no idea what the heels I'm doing.

    thanks for reaching out. take care.

    --
    Posted via http://www.ruby-forum.com/.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    To post to this group, send email to [email protected].
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/78326a8001d715b87254c60354410696%40ruby-forum.com.
    For more options, visit https://groups.google.com/d/optout.
  • Colin Law at Jan 22, 2015 at 4:22 pm

    On 22 January 2015 at 16:15, Justin Cheeze wrote:
    control flow. learning how to think. like, obviously I know exactly what
    this test is doing

    test "should get show" do
    get :show
    assert_response :success
    end

    however, when doing other testing on another application to help hone my
    craft, I have no idea what the heels I'm doing.
    Finish the tutorial first, doing all the exercises, see if that helps.

    Colin

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    To post to this group, send email to [email protected].
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtbhhvk5NxtfXfqu4b9LguM6jq3k8WMHRZRv-ODWSb7ug%40mail.gmail.com.
    For more options, visit https://groups.google.com/d/optout.
  • Justin Cheeze at Jan 22, 2015 at 4:24 pm
    ok, I will.

    thanks again for reaching out. it's appreciated.

    --
    Posted via http://www.ruby-forum.com/.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    To post to this group, send email to [email protected].
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/486fb4423cfca1ec78ea9980e00e47aa%40ruby-forum.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 22, '15 at 12:20a
activeJan 22, '15 at 4:24p
posts8
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2023 Grokbase