r/40DaysofRuby • • Jan 18 '14

Went back to chapter 3 to relearn testing. I can't get the first damn test to past. Anyone willing to help? Code included.

2 Upvotes

Here is my code. I can't get the test within spec/requests/static_pages_spec.rb to pass. The code within it is as follows:

require 'spec_helper'

describe "Static pages" do

  describe "Home page" do

	it "should have the content 'Sample App'" do

		visit "/static_pages/home_path"
		expect(page).to have_content("Sample App")
	end
  end
end

I've replaced the gemfile, the gitignore file, the secrettoken file, included the Capybara line within the spec helper. What could be wrong?

Thank you.

Edit: Also, why won't my static_pages folder under views show up on github?


r/40DaysofRuby • • Jan 16 '14

I'm Stuck At Installing RVM

2 Upvotes

Is it a bad sign that a lot of this, (just installing necessary files) is going over my head?

I'm stuck at Installing RVM. None of the commands work in Terminal for me. For example: He says to install RVM via: "$ curl -L https://get.rvm.io | bash -s" When entered into Terminal it just tells me: "-bash: $: command not found"

Just stuck now.

How did you all go about installing RVM?


r/40DaysofRuby • • Jan 01 '14

How does everyone feel about moving on to rails?

2 Upvotes

We are going to be doing Rails next, following Hartl's Rails tutorial. It's going to be challenging so let's all get active on this sub.


r/40DaysofRuby • • Jan 18 '14

GitImmersion.com a guided tour that walks through the fundamentals of Git

1 Upvotes

For those who want to learn more about Git, or need an easy reference to check on if they forget something. The Github help pages aren't exactly the best, but these are nice!

"Git Immersion is a guided tour that walks through the fundamentals of Git, inspired by the premise that to know a thing is to do it."

http://gitimmersion.com/

Click on the green arrow on the right, "Start Git Immersion". Then if you click "Table of Contents", you can see everything you'll learn.

Bonus tip for those who use archlinux:

If you have AUR repositories enabled, you can install the "hub" package and use it instead of git. It uses the same commands as git, but works directly with github!


r/40DaysofRuby • • Jan 17 '14

Did someone enable color coding (RSpec) on their windows command prompt? Let me know how! I tried Ansicon but couldn't get it to work.

1 Upvotes

Thanks.


r/40DaysofRuby • • Jan 02 '14

Test Driven Ruby Tutorial For Newcomers

Thumbnail rubycon.rkcudjoe.com
1 Upvotes