By Developers, For Developers
| PDF Pg | Paper Pg | Type | Description | Fixed on | Comments |
|---|---|---|---|---|---|
| 86 | ERROR | On the last line, the command line use simple quote with a dynamic text inside: This result in the incorrect behavior of outputting <<You changed: #{m[1]}>> instead of <<You changed: controller/some_file.rb>>. At least on ruby 1.8.7 / Mac OS X Snow Leopard | 2011-01-04 | ||
| 86 | ERROR | The watchr command isn’t evaluating the matcher. Given: % watchr -e “watch(‘^app/(.*\\.rb)’) { |m| puts ‘You changed: #{m[1]}’ }” Output: Suggested tweak: Output: | 2011-01-04 | ||
| 87 | SUGGEST | On page 87 you say: “Another benefit of Sass is that you can quickly validate the syntax of a stylesheet using the sass —check command (provided indirectly by the compass gem).” I’d suggest explicitly telling the reader to install the compass gem (and any other gems that are used in the code examples). | 2011-03-16 | ||
| 89 | DEFER | “One great way to create a feedback loop for views in our web application is to turn over responsibility for refreshing the browser to our continuous test runner.” I’d suggest adding a snippet of code to give an example of how to do that. | |||
| 38 | SUGGEST | It’s not vary clear that the method ‘zip_code’ belongs in the class User. (The indentation is also a bit weird here) def zip_code m = Locales.current.postal_code_regex.match(self.address_text) return m[0] if m | 2011-03-21 | ||
| 2 | ERROR | Clicking the ‘report erratum’ in the PDF does not take the user to the erratum page of the book (but to the home page of pragprog). | 2011-01-04 | ||
| 19 | ERROR | If using autotest with RSpec2, spec/spec_helper.rb doesn’t need these lines: #require ‘spec’
| 2011-03-16 | ||
| 21 | SUGGEST | You explain that rspec 2 removes autospec in a sidebar for those who have upgraded. I think it would be less confusing to most readers if you just stuck with autotest throughout and had a sidebar for those on older versions. Page number is from epub version. | 2011-03-16 | ||
| 16 | DEFER | I am a newbie to ruby which means I have to follow your book step by step. From page 16, I execute the below two commands with no problem: But in order to run the next listed command, namely: My suggestion is that an explanation about what Git is and that the reader needs to install / set it up be added before having to execute this last command above. For a newbie it is somewhat frustrating to hit a wall on the first few pages of this book. Thank-you, Michelle | |||
| 18 | ERROR | Pg.18 Rspec/autospec instructions don’t work for me: C:\\DEVELOPMENT\\twits>ls C:\\DEVELOPMENT\\twits>cat autotest/discover.rb C:\\DEVELOPMENT\\twits>ruby -v C:\\DEVELOPMENT\\twits>gem list —local * LOCAL GEMS* autotest (4.4.6) C:\\DEVELOPMENT\\twits>autospec
This message will be removed from a future version of rspec. Please provide alternative instructions so that I can resume working through your book. Thank-you | 2011-03-16 | ||
| 11 | SUGGEST | In this section you are defining test terminology, but you throw in “if we can’t do a quick smoke test and make sure that things are working properly,” without defining “smoke test.” You can’t assume your reader will know what you mean. I can guess, but I’d rather learn about testing without having to guess. | 2011-01-04 | ||
| 12 | TYPO | regardless of how the test are categorized," should be “tests are” or "test is | 2011-01-04 | ||
| 16 | TYPO | The project structure is show in the | 2011-01-04 | ||
| 0 | TYPO | The “Report erratum” link is broken it is “books.pragprog.com//titles/rcctr/errata/add” but should be “books.pragprog.com/titles/rcctr/errata/add” | 2011-01-04 | ||
| 17 | TYPO | While the principles we discuss this this book | 2011-01-04 | ||
| 21 | TYPO | When other changes are make, | 2011-01-04 | ||
| 23 | TYPO | It’s essential that you clearly understand why each of the FIRE attributes are important | 2011-01-04 | ||
| 24 | TYPO | why things are they way they are. | 2011-01-04 | ||
| 25 | TYPO | using an before( ) block | 2011-01-04 | ||
| 26 | ERROR | I had to add (Sorry in advance if the code tags don’t work here the same way as in the discussion forum.) | 2011-03-21 | ||
| 28 | TYPO | the first attack is on I/O in all it’s forms. | 2011-01-04 | ||
| 29 | ERROR | After installing the twitter gem, I had to add “require ‘twitter’” to user.rb. Also autotest recommends using “should ==” instead of “should be” to compare contents instead of identity. And what’s returned from last_five_tweets is a list of attributes ([#<Twitter::Search:0x1021b8b10 | 2011-03-21 | ||
| 36 | TYPO | In “Global variables—for lack of a better word—are evil” the word “are” should be before the hyphenated clause. | 2011-01-04 | ||
| 38 | SUGGEST | not as much of a sin as adding too little, | 2011-01-04 | ||
| 50 | TYPO | high interest debt get out control and | 2011-01-04 | ||
| 52 | TYPO | Now lets add a feature | 2011-01-04 | ||
| 0 | DEFER | It will be better using “bundler” instead of “jeweler”. | |||
| 21 | TYPO | “When other changes are make…” should be, “When other changes are made,” And “it reruns the previously failing tests, plus any new | 2011-03-21 | ||
| 19 | TYPO | Section 1.4 - 3rd paragraph “This figure maps compares the confidence…” probably should be “This figure compares the confidence…” | 2011-05-11 | ||
| 16 | TYPO | “use” should be replaced by “used” in the following sentence: “We strongly believe in automated testing, and have use it with great | 2011-05-25 | ||
| 106 | TYPO | In the last paragraph of the page, you say you’ve introduced a variable called “all_tests_pass”, however, in the code, the variable looks like it’s actually called “@all_tests_passing” | 2011-06-06 | ||
| 49 | SUGGEST | After moving (and renaming the autotest-stats.rb file to autotest/stats.rb). It is indicated to go to spec_helper and change to a require ‘autotest/stats’ After such change, you then indicate to run autotest and it will not work because you do not indicate to change the newly moved autotest/stats_spec.rb require statement to require File.expand_path(File.dirname(FILE) + ‘/../spec_helper’) | 2011-06-06 | ||
| 49 | ERROR | Shouldn’t the it “should add hooks to autotest” block be inside the describe block? it is outside of the describe block | 2011-06-06 | ||
| 48 | TYPO | spec_helper is incorrectly shown in the tree structure of how the files should be | 2011-06-06 | ||
| 89 | ERROR | It is described how to add spork in the code fragment. However, the author then informs the reader to run the sport command through the command line. This should be in two separate code fragments. The error: group … do is typed in a single code fragment. | 2011-06-06 | ||
| 89 | SUGGEST | Very confusing when indicating in running spork. “This has added some code to the beginning of our spec_helper.rb file. We’ll need to move all of the initialization code that was in our spec_helper into the prefork() block. This will tell Spork how to initialize the environment we’ll use to run our tests. All of the time currently taken setting up this environment should then be eliminated when running tests after a file change. After moving that code, our spec_helper looks like this:” I believe information is missing, perhaps informing the reader to run sporl with the argument for bootstrapping. | 2011-06-06 | ||
| 90 | SUGGEST | Bit confusing. There is another error, though. It is supposed to show only how to call the spork program. It is including all the group dependency block, and after the block is calling “spork”… The it says to start the server, soon you realize that spork starts up a server. More clarity needed when introducing spork. | 2011-06-06 | ||
| 90 | SUGGEST | Assuming the migrations are up to date. Shouldn’t the author indicate the reader to issue a rake db:test:prepare command before running the tests? | 2011-06-06 | ||
| 91 | OK | “So if we restart Watchr and make a change to one of our specs (say, gro- cery_list_spec.rb), we get output that looks like this: The rails.watchr script only runs corresponding spec files when .rb files are modified inside the app directory. If you modify a *_spec.rb file it wont run it. | The watch('^spec/(.*)_spec\\.rb') { |m| run_test_matching(m[1]) } call in the rails.watchr file is intended to handle this case. Is there a problem with that call? | ||
| 92 | SUGGEST | “or any of our Factory Girl factories change. Finally, we added some methods to find and run all the specs in our suite and changed the run_test_method() to run all the tests after failure (that is, if run() returns a non-zero value).” Factory Girl? wasn’t introduced, author assumes reader knows what it is. what is the “run_test_method()” ? more clarity needed | 2011-06-06 | ||
| 88 | ERROR | At the bottom of the page in the “Automating Spork with Watchr”, you say “To start out, let’s add some watch() for RSpec specs:” and you don’t give any code below. The next paragraph explain what the code (which is missing) is supposed to do. | |||
| vi | SUGGEST | Copyeditor is listed as Kim Wimpsett. I thought Molly McBeath was the copyeditor for this one. (The number of people who care might be countable on one hand with fingers left over, but she’s my wife…) | |||
| 19 | SUGGEST | In the initial creation of the user2.1_spec.rb, the line: require ‘user’ should be used just after the the spec_helper require line, in order for the test to pass. | |||
| 45 | SUGGEST | Three lines from the bottom on page 45 there is the commnad line to create the gem: $ jeweler —rspec —gemcutter —create-repo autotest-stats when running with jeweler 1.6.4 it comes up with : invalid option: —gemcutter | |||
| 47 | TYPO | On line 4 from the top the line: …Firing up autospec … shouldn’t that be: | |||
| 82 | SUGGEST | As the watcher script file can be named everything we want, wouldn’t it be a better idea to have the watchr script file (rails.watchr), named with .rb (ie. rails.watchr.rb)? | |||
| 88 | SUGGEST | Would it be a good idea to replace the Spork + Watchr automation with Spork + Guard automation, as Guard seems to be more recently updated? | |||
| 81 | ERROR | You write the following: ":But first, we have to add it to our Gemfile: $ gem install watchr" Probably meant add it to the GemFile and then update bundler. | |||
| 31 | TYPO | Refixed. -> prefixed | |||
| 17 | TYPO | There is a typo at the top of the page, in the Joe Asks box, so this: “the test/ directory, refixed with test_, to similarly named files in the lib/ directory. So” probably meant: “the test/ directory, prefixed with test_, to similarly named files in the lib/ directory. So” | |||
| 5 | TYPO | The image of Figure 1 on the iPad only show the bars in blue and green. No labels or legend. They are blacked out. | |||
| 20 | ERROR | Of course, the User class doesn’t exist yet, so the failure of this test will drive us to create it: There is no test yet - we have only written a before block! | |||
| 26 | TYPO | But it’s essential that we not leave the test in this state. s/this/that/ |