-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Rspec Essentials
By :
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."
A block of code is set as follows:
require 'rspec'
describe 'new RSpec syntax' do
it "uses the new assertion syntax" do
# new # deprecated
expect(1 + 1).to eq(2) # (1 + 1).should == 2
endAny command-line input or output is written as follows:
# comments to clarify the command $ echo 'Hello' # => Hello
Often, command-line output will be displayed in screenshots to show output more clearly and to discourage cut-and-paste without thinking through the commands. The screenshots will like look the following:

Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
Change the font size
Change margin width
Change background colour